PaloAltoNetworks / pan-os-codegen

Generator for pango SDK and panos Terraform Provider
MIT License
4 stars 0 forks source link

feat: update schema specification with JSON schema validation #122

Closed kklimonda-cl closed 1 month ago

kklimonda-cl commented 1 month ago

Description

A new schema for API specifications, along with JSON schema files that can be used to validate specification, and runtime conversion of new schema to the old one to avoid large changes across our codegen templates.

Motivation and Context

Existing specification had some edge cases that made writing codegen more complicated:

New schema solves those and some other issues, and removes codegen-level data (like NameVariants) that will be implemented in the Sdk and Terraform marshallers.

How Has This Been Tested?

Screenshots (if appropriate)

Types of changes