Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rburgst/fastify-oas-problem
sample repo demonstrating a problem with generated oas spec
https://github.com/rburgst/fastify-oas-problem
Last synced: 2 days ago
JSON representation
sample repo demonstrating a problem with generated oas spec
- Host: GitHub
- URL: https://github.com/rburgst/fastify-oas-problem
- Owner: rburgst
- Created: 2020-08-19T14:54:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T14:57:02.000Z (over 4 years ago)
- Last Synced: 2024-11-08T17:53:07.534Z (about 2 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fastify OAS Problem Sample
this repo demonstrates a problem with `fastify-oas` where the generated yaml is not valid.
To replicate
1. `yarn install`
2. `node index.js`
3. go to http://localhost:3000/api/documentation/yaml
4. copy the yaml and paste it into https://editor.swagger.io/
5. the following errors will appear```
Structural error at paths./api/users.get.responses.200.content.application/json.schema.properties.data.items
should NOT have additional properties
additionalProperty: $id
Jump to line 53
Structural error at paths./api/users.get.responses.default
should have required property 'description'
missingProperty: description
Jump to line 61
```