Skip to content

Conversation

@delvedor
Copy link
Member

Updated required field according to the json schema spec.
Moving from:

...
field: {
  type: 'string',
  required: true
}
...

to:

...
  field: {
    type: 'string'
  }
},
required: ['field']
...

Here some official example.

@mcollina mcollina merged commit 2dbd148 into master Sep 17, 2016
@mcollina mcollina deleted the fix-required-field branch September 17, 2016 07:44
mcollina pushed a commit that referenced this pull request Sep 8, 2022
* Infer type schema (#4)


* Added type inference

* Test cases with tsd

* Allow manual inference

* Restored index.js

* Restore unwanted files

* Removed json-schema-to-ts
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

Successfully merging this pull request may close these issues.

3 participants