Skip to content

fix(openapi): JSON Schema for single-constructor records and generic declarations #242

Description

@DamianReeves

Part of finos/morphir#958, phase B.

What

The MEP contract needs two changes in the morphir-openapi JSON Schema backend:

  • Write a single-constructor custom type as a plain object. Today it becomes a oneOf with a kind discriminator, which does not match the MEP wire shape.
  • Accept the generic declarations the contract uses. Today they fail with JSC003.

Done when

  • A Gleam record type produces a plain object schema.
  • A generic declaration used with concrete arguments produces a schema.

Design

checkpoint 9 in finos/morphir#949.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions