Skip to content

support defaults for required arrays #748

Open

Description

@cfm

In cfm/ta-attendance-tools#66, I believe I'm encountering the case not handled in:

it.todo('should be able to handle arrays with defaults');

I've taken a stab at this in cfm/api@18115a3, but doesn't seem to be so straightforward after all. :-) If you can give guidance on how you'd like to see this support implemented, I'd be glad to work on it.

Activity

  1. added this to the v7 milestone on Oct 6, 2023
  2. added
    help wanted
    area:core
    on Oct 12, 2023
  3. removed this from the v7 milestone on Oct 16, 2023
  4. erunion commented on Oct 19, 2023

    @erunion
    Member

    @cfm I took a stab at this myself this week and I think we're going to have to completely rewrite how getJSONSchemaDefaults works because it currently doesn't keep track of parental default lineage. We actually fixed this same problem in our closed source API Explorer software on ReadMe customer sites and it might be worth refactoring that work out somewhere into our oas library so it can be used here.

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

    area:corehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions