Skip to content

splitgraph.yml generator: no lists for JSONSchema with oneOf with a single option #713

@mildbyte

Description

@mildbyte

If a schema has a oneOf with only a single option, there's no need to generate a list with multiple potential options to go into this oneOf:

def _get_oneof_example(obj: Dict[str, Any]) -> CS:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions