You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
Activity
erunion commentedon Oct 19, 2023
@cfm I took a stab at this myself this week and I think we're going to have to completely rewrite how
getJSONSchemaDefaultsworks because it currently doesn't keep track of parentaldefaultlineage. 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.