Skip to content

Commit

Permalink
fix: update comments in spec, update base doc
Browse files Browse the repository at this point in the history
Changes:

- updated the spec file to correctly match the json format and for
  further parsing
- updated the base document to support more of the examples
- added missing json version for some of the examples
  • Loading branch information
AnimeshKumar923 committed Jun 11, 2024
1 parent 532c4c2 commit 4529772
Show file tree
Hide file tree
Showing 2 changed files with 183 additions and 59 deletions.
64 changes: 61 additions & 3 deletions scripts/validation/embedded-files-test/ex-base-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"asyncapi": "3.0.0",
"info": {
"title": "AsyncAPI",
"version": "1.9.5",
"description": "This is a very good doc, probably.",
"version": "1.x.x",
"description": "This is a very good base doc, probably.",
"termsOfService": "https://asyncapi.org/terms/",
"license": {
"name": "Apache 2.0",
Expand Down Expand Up @@ -273,6 +273,62 @@
}
},
"required": ["timestamp", "source"]
},
"ComplexModel": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
}
}
},
"Address": {
"type": "object",
"properties": {
"street": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"zip": {
"type": "string"
}
}
},
"ErrorModel": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
},
"Pet": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"tag": {
"type": "string"
}
}
}
},
"servers": {
Expand Down Expand Up @@ -494,7 +550,9 @@
}
},
"scopes": [
"subscribe:auth_revocations"
"subscribe:auth_revocations",
"write:pets",
"read:pets"
]
}
},
Expand Down
Loading

0 comments on commit 4529772

Please sign in to comment.