Closed dchicchon closed 1 year ago
The default output format is FLAG
which doesn't include error details. In order to get more details you need to use one of the other output formats. https://github.com/hyperjump-io/json-schema#output-formats-experimental
import { BASIC } from "@hyperjump/json-schema/experimental";
const output = await validate("https://spec.openapis.org/oas/3.1/schema-base", openapi, BASIC);
Issue is as stated above, I passed in my OpenAPI 3.1.0 document to the
validate
method that was shown in the main README.md.Below is the output
Expected output: If my OpenAPI document is not valid, I expected to receive errors that specified what issues I need to resolve.
Actual output: An invalid OpenAPI 3.1.0 document returns an empty
errors
array