stoplightio / http-spec

Utilities to normalize OpenAPI v2 and v3 objects for the Stoplight ecosystem.

Home Page:https://stoplight.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"loose mode" for openapi-schema-to-json-schema

philsturgeon opened this issue · comments

User Story

As an author of a mixed-mode OpenAPI/JSON Schema document, I might have JSON Schema-only features in my OpenAPI files, and that can cause errors from strict tools in the Stoplight chain like openapi-schema-to-json-schema.

Implementation

Let's send a PR to openapi-schema-to-json-schema to get a "loose mode" added, where it will "keep on trucking" instead of failing fast and early, so we can politely guide these document authors towards valid OpenAPI or valid JSON Schema, and get them out of their mixed quagmire.

Maybe we can start off asking @mikunn for direction on this feature, and take it from there.

Original discussion between @marbemac & @philsturgeon in #12 (comment)

this has been in for a while via a fork. and now #55 gives the change a proper home.