An OpenAPI proxy that only allows data that matches your swagger.json
1–10 of 15 posts
Re: An OpenAPI proxy that only allows data that matches your swagger.json
#2Re: An OpenAPI proxy that only allows data that matches your swagger.json
#3I've found OpenAPI is very poor for more dynamic resource-based APIs where the mechanics of interactions between the resources is standard but the resources themselves differ, e.g. a JSONAPI API. Does anyone know of tooling that more accurately fits that use case? I have hand rolled (well, generated) JSON Schemas in the past and published those, but that felt unsatisfying and too ad hoc.
EDIT: `declarative API` as in some kind of proxy layer which you can better isolate.
Re: An OpenAPI proxy that only allows data that matches your swagger.json
#4I've found OpenAPI is very poor for more dynamic resource-based APIs where the mechanics of interactions between the resources is standard but the resources themselves differ, e.g. a JSONAPI API. Does anyone know of tooling that more accurately fits that use case? I have hand rolled (well, generated) JSON Schemas in the past and published those, but that felt unsatisfying and too ad hoc.
Re: An OpenAPI proxy that only allows data that matches your swagger.json
#5Predefined schema, generate classes from schema, interact with it via HTTP.
Re: An OpenAPI proxy that only allows data that matches your swagger.json
#6Re: An OpenAPI proxy that only allows data that matches your swagger.json
#7https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...
Re: An OpenAPI proxy that only allows data that matches your swagger.json
#8https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...
Many people would need additional tooling to parse JSON into a structured type, especially in dynamic languages where unstructured data types are the norm. And even if you do that, you're still going to have to validate the data and tell the client where they might have messed up the formatting.
Parsing is a totally fine, low-cost, low-risk way to validate chunks of JSON before trying to parse them -- or not trying to parse them, if that's your choice. People who use TypeScript on the server side, for example, will only need to validate.
Re: An OpenAPI proxy that only allows data that matches your swagger.json
#9Isn't REST just a glorified SOAP at this point? Predefined schema, generate classes from schema, interact with it via HTTP.
Re: An OpenAPI proxy that only allows data that matches your swagger.json
#10Isn't REST just a glorified SOAP at this point? Predefined schema, generate classes from schema, interact with it via HTTP.