Skip to content

Commit cfdb5c7

Browse files
authored
Merge pull request #9 from JaredCE/remove-id
remove $id keyword from schemas
2 parents deb2222 + 46158e7 commit cfdb5c7

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.2",
3+
"version": "0.1.3",
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', '$comment']
14+
this.bannedKeyWords = ['$schema', '$comment', '$id']
1515

1616
this.components = {
1717
schemas: {}

0 commit comments

Comments
 (0)