forked from wework/json-schema-to-openapi-schema
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: windows test bug, add support for derefencing definitions (#30)
* Clean up type imports, fix release scripts * removed dependency, only test on greater than node 14, added lint checks * test on windows * test on windows * test on windows * test on windows * support definitions conversions * fix typescript complaints in tests
- Loading branch information
Showing
14 changed files
with
273 additions
and
1,526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// TODO: having definitions inside an oas3 schema isn't exactly valid, | ||
// maybe it is an idea to extract and split them into multiple oas3 schemas and reference to them. | ||
// For now leaving as is. | ||
export const allowedKeywords = [ | ||
'$ref', | ||
'definitions', | ||
// From Schema | ||
'title', | ||
'multipleOf', | ||
'maximum', | ||
'exclusiveMaximum', | ||
'minimum', | ||
'exclusiveMinimum', | ||
'maxLength', | ||
'minLength', | ||
'pattern', | ||
'maxItems', | ||
'minItems', | ||
'uniqueItems', | ||
'maxProperties', | ||
'minProperties', | ||
'required', | ||
'enum', | ||
'type', | ||
'not', | ||
'allOf', | ||
'oneOf', | ||
'anyOf', | ||
'items', | ||
'properties', | ||
'additionalProperties', | ||
'description', | ||
'format', | ||
'default', | ||
'nullable', | ||
'discriminator', | ||
'readOnly', | ||
'writeOnly', | ||
'example', | ||
'externalDocs', | ||
'deprecated', | ||
'xml', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.