[inline model resolver] Add support for inline enum refactoring (#16033)

* add support for inline enum refactoring

* minor update

* add tests
This commit is contained in:
William Cheng
2023-07-10 13:43:50 +08:00
committed by GitHub
parent 852eb956db
commit ac1f5f1e81
4 changed files with 102 additions and 5 deletions

View File

@@ -455,6 +455,7 @@ Note: Only arrayItemSuffix, mapItemSuffix are supported at the moment.
There are 2 special values:
- `SKIP_SCHEMA_REUSE=true` is a special value to skip reusing inline schemas.
- `REFACTOR_ALLOF_INLINE_SCHEMAS=true` will restore the 6.x (or below) behaviour to refactor allOf inline schemas into $ref. (v7.0.0 will skip the refactoring of these allOf inline schmeas by default)
- `RESOLVE_INLINE_ENUMS=true` will refactor inline enum definitions into $ref
## OpenAPI Normalizer