Comments (8)
Example of a filter, the JSON Schema to OpenAPI conversion layer that goes into each of the different protocol things. wework/speccy#45
from oas-kit.
Cool. Will probably be implemented as an array of callbacks which can mutate the content. Do you think anyone is ever going to want to massage the text before it gets parsed by js-yaml
?
from oas-kit.
I can only guess, but for me no.
from oas-kit.
Good, simpler the better.
from oas-kit.
options.filters
is now an (optional) array of functions which take two parameters, data
and options
and must return the filtered data
.
oas-kit
should be a step towards re-integrating speccy
with the new oas-resolver
package and possibly oas-validator
in the future (you would provide your own linter presumably which would be plugged in instead of oas-linter
).
from oas-kit.
Sweet! Is this ready for me to rewrite speccy around or what's the deal?
from oas-kit.
I think the refactoring of swagger2openapi
into oas-kit
as a mono-repo is now stable. I don't believe you made any other changes to the resolver apart from the ability to plug in your JSON-Schema dialect converter? If that's the case, then switching over to using oas-resolver
as a dependency should be pretty trivial.
It will take a little longer for me to work out whether the validator changes can be sync'd up again, and if so what changes if any are needed to the interface between the validator and the linter.
I'm happy to do anything to reduce the code duplication between the projects, but I know you were at least toying with the idea of using ajv
(with better-ajv-errors
) as the primary validator. oas-validator
now has an option to do ajv
first
, last
or never
, but ajv-errors-are-still-pretty-shit
:)
from oas-kit.
Work being done in wework/speccy#98
from oas-kit.
Related Issues (20)
- Dependency on should(js) causes typescript compilation problems when other dependencies use chai HOT 1
- swagger2openapi: timestamp events get converted to YAML timestamps
- swagger2openapi: missed request body contenttype after conversion from swagger v2 to openAPI v3.0.x
- Planned support for OpenAPI 3.1? HOT 6
- @ts-check command in index file make typescript project fail to build
- While upgrading swagger2openapi module with latest version @7.0.8, dependency module node-fetch is not updated to latest version HOT 3
- What does this error mean? > #/paths/~1v1~1action~1amend/post/parameters/3/schema, expected 'string' to be 'number' HOT 1
- Dockerfile vulnerability - `Specify at least 1 USER command in Dockerfile with non-root user as argument` HOT 1
- swagger2openapi报错,Swagger schema parse error! HOT 1
- Field "description" values are usurped by the schema's definition description (used via Redoc) HOT 4
- openAPI validator says header in components is invalid and should contain name when specs say differently. HOT 1
- Swagger 2.0 to 3.0 convertor for SwashBuckle.core (.Net) HOT 1
- TS types for oas-validator HOT 1
- Understanding the opinionated nature of this library HOT 7
- Give an option to mark not required fields as nullable HOT 1
- Allow the same operationId under different tags HOT 5
- Update yaml to v2 HOT 4
- [swagger2openapi][components] Add a prefix to generated components HOT 2
- Error reported when swagger. schemas is empty
- Hosted OpenAPI converter is down [502 Bad Gateway] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oas-kit.