kin-openapi icon indicating copy to clipboard operation
kin-openapi copied to clipboard

openapi3: support format conditional on `doc.openapi` version

Open cboitel opened this issue 3 years ago • 4 comments

Implements string format improvements in issue #582 with openapi minor version support.

  • You can now define a string formats available for some minor version
  • by default, string formats apply to all minor versions (>= 3.0)
  • filters do enforce string formats according to document's OpenAPI version

cboitel avatar Jan 17 '23 21:01 cboitel

@fenollp finally made up with implementing a string format support based on OpenAPI minor version

cboitel avatar Jan 18 '23 21:01 cboitel

@cboitel Hey there. Do you need help moving this forward?

fenollp avatar Jun 18 '23 11:06 fenollp

Nope. Just missed it while I was on vacations. Will get back to it next week.

cboitel avatar Jun 18 '23 12:06 cboitel

@fenollp

I had a hard time to rebase.

Finally found it was related to some new/existing tests defining string formats for uuid but not restoring string formats to original value.

I created a new Save/Restore/RestoreDefault functions for string formats so one can easily do that like we need in our tests.

I will now address your earlier comments in the upcoming days.

cboitel avatar Jul 30 '23 16:07 cboitel