manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.42k stars 125 forks source link

manifold-json: Support top-level oneOf/anyOf types #540

Closed rsmckinney closed 10 months ago

rsmckinney commented 10 months ago

manifold-json: Support top-level oneOf/anyOf types.

Peculiar case where root type is a union:

Objects:

  {
    "anyOf": [
      {
        "type": "object", 
        "properties": {...}
      }, 
      {
        "type": "object", 
        "properties": {...}
      }
    ]
  }

Arrays:

  {
    "anyOf": [
      {
        "type": "array", 
        "items": {...}
      }, 
      {
        "type": "array", 
        "items": {...}
      }
    ]
  }
rsmckinney commented 10 months ago

Fix available with release 2024.1.0