Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown type object #67

Closed
jgangemi opened this issue May 18, 2018 · 1 comment
Closed

unknown type object #67

jgangemi opened this issue May 18, 2018 · 1 comment

Comments

@jgangemi
Copy link

jgangemi commented May 18, 2018

i don't quite understand why settings renders correctly but collaborators yields an Unknown type object

i can produce this error with any child object under settings. is there something wrong w/ my json schema that would cause this?

json:

{
    "$id": "test.json",
    "$schema": "http://json-schema.org/draft-06/schema",
    "title": "test",
    "type": "object",
    "properties": {
        "settings": {
            "description": "settings",
            "type": "object",
            "properties": {
                "collaborators": {
                    "description": "collaborators",
                    "type": "object",
                    "patternProperties": {
                        ".*": {
                            "type": "string"
                        }
                    }
                }
            }
        }
    },
    "additionalProperties": false
}

resulting markdown:

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|----------|------------|--------|--------------|-------------------|-----------------------|------------|
| Can be instantiated | No | Experimental | No | Forbidden | Forbidden |  |

# test Properties

| Property | Type | Required | Defined by |
|----------|------|----------|------------|
| [settings](#settings) | `object` | Optional | test (this schema) |

## settings

settings

`settings`
* is optional
* type: `object`
* defined in this schema

### settings Type


`object` with following properties:


| Property | Type | Required
|----------|------|----------|
| `collaborators`| object | Optional | 



#### collaborators

collaborators

`collaborators`
* is optional
* type: `object`

##### collaborators Type

Unknown type `object`.

```json
{
  "description": "collaborators",
  "type": "object",
  "patternProperties": {
    ".*": {
      "type": "string"
    }
  },
  "simpletype": "`object`"
}
@andy-miracl
Copy link

Same problem here

kmp1 pushed a commit to kmp1/jsonschema2md that referenced this issue Oct 26, 2018
kmp1 pushed a commit to kmp1/jsonschema2md that referenced this issue Oct 26, 2018
kmp1 pushed a commit to kmp1/jsonschema2md that referenced this issue Oct 26, 2018
kmp1 pushed a commit to kmp1/jsonschema2md that referenced this issue Nov 1, 2018
trieloff added a commit that referenced this issue Mar 25, 2019
Implements #67.  Add an else clause to allow a nested object property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants