Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What the $ref - Create composable JSON Schemas

What the $ref - Create composable JSON Schemas

Lightning talk 8th Feb 2022

Niklas Kiefer

February 08, 2022
Tweet

More Decks by Niklas Kiefer

Other Decks in Programming

Transcript

  1. Problem(s) First contribution - hard to comprehend what’s going on

    Extending is (quite) impossible Don’t repeat yourself 8
  2. Problem(s) First contribution - hard to comprehend what’s going on

    Extending is (quite) impossible Don’t repeat yourself Goal: Make JSON Schema composable 9
  3. Composable JSON Schema (sketch) platform.json cloud.json Definitions base-properties cloud-properties platform-properties

    base groups scopes Product Export schema.json cloud.json Backwards compatibility 25
  4. Summary • Check it out: https://github.com/camunda/element-templates-json-schema/pull/41 • No breaking changes,

    exported schema kept almost the same • Platform and Cloud have own schema definitions now • Base definitions can be handled separately, composed later • We don’t have to bother with the single, huge schema file • Tests are green, only schemaPath updates needed 27