Skip to content

2023.4

Compare
Choose a tag to compare
@hauner hauner released this 17 Sep 12:38

json schema validation for OpenAPI 3.1

the processor does now run json schema validation on OpenAPI 3.1 documents.

#42 (new) automatically clear output directory

when called, the processor clears the target directory to avoid any left over/obsolete files from previous runs.

#43 (new) accept generic wildcard in mapping

it is now possible to use the generic ? in a mapping.

openapi-processor-mapping: v4
options:
  package-name: io.openapiprocessor.generated
 
map:
  parameters:
     - add: foo => io.openapiprocessor.GenericType<?>

(fix) improved json schema of mapping.yaml

when using endpoint specific mappings the processor (sometimes) complained about invalid entries in the mapping.yaml. This was caused by wrong definitions in the corresponding json schema.

(fix) don't request json schema draft

a miss-configuration of the json-schema validator caused an unnecessary network request to download a json schema (draft 7) from https://json-schema.org.

(improvement) write http operations in original order

the controller endpoint methods for the http operations are written in the same order as in the OpenAPI description.

Unfortunately this doesn't work for with the swagger OpenAPI parser because it doesn't preserve the original order.

dependency updates

  • updated (internal) OpenAPI parser to 2023.4