Skip to content

Commit 7b356f7

Browse files
authored
Merge pull request #10 from JaredCE/remove-version
Update Convertor.js
2 parents cfdb5c7 + 78352fd commit 7b356f7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-schema-for-openapi",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Converts a regular JSON Schema to a compatible OpenAPI 3 Schema Object, extracting out $ref schemas to their own schema object",
55
"keywords": [
66
"json",

src/Convertor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Convertor {
1111
this.specialProperties = ['allOf', 'anyOf', 'items', 'oneOf', 'not', 'properties']
1212
this.ofProperties = ['allOf', 'anyOf', 'oneOf']
1313
this.referencedSchemas = {}
14-
this.bannedKeyWords = ['$schema', '$comment', '$id']
14+
this.bannedKeyWords = ['$schema', '$comment', '$id', 'version']
1515

1616
this.components = {
1717
schemas: {}

0 commit comments

Comments
 (0)