Skip to content

Commit a900c56

Browse files
authored
Merge pull request #7 from JaredCE/add-comment-as-banned-keyword
Add comment as banned keyword
2 parents fb0f451 + e234c62 commit a900c56

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-schema-for-openapi",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
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

+1-1
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']
14+
this.bannedKeyWords = ['$schema', '$comment']
1515

1616
this.components = {
1717
schemas: {}

0 commit comments

Comments
 (0)