Open bilby91 opened 2 days ago
@davishmcclurg I was able to get the test passing without breaking any other test. Here is the PR => https://github.com/davishmcclurg/json_schemer/pull/200
I know that the PR might need adjustment since I'm impacting draft202012
instead of OpenAPI 3.0 but I wasn't able to figure out how to hook the type yet.
Hello @davishmcclurg!
I stumble upon this issue where
nullable: true
is not honored when used in a field declared with$ref
. This is my exact example.I have created a test that reproduces the problem, the last
assert
is not passing when it should IMO => https://github.com/bilby91/json_schemer/blob/8097bd3d9a497a6803c71d31cd5bf23bf7326372/test/open_api_test.rb#L1119I've also found a typescript implementation where they are handling this "correctly" => https://github.com/acacode/swagger-typescript-api/pull/40