Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Adding support for $ref pointers to additionalProperties #232

Merged
merged 3 commits into from
Jul 31, 2019

Conversation

erunion
Copy link
Member

@erunion erunion commented Jul 30, 2019

This incorporates a branch on our existing react-jsonschema-form fork (now moved to our @readmeio org), to add support for $ref pointers on additionalProperties entries in data models.

Previously, if there was no type detected within additionalProperties, react-jsonschema-form would attempt to guess the type of the object as a string. Now, if a $ref pointer is present, it will be loaded as expected.

See readmeio/react-jsonschema-form#1 for the full changeset of that fix and readmeio/react-jsonschema-form#2 for the full changeset of what we're running in this (temporary) react-jsonschema-form fork.

Before

62160626-49edc280-b2c9-11e9-9d63-34c995952f2e

After

62160569-21fe5f00-b2c9-11e9-8dd5-ed7f921f24d6

@erunion erunion added the type:enhancement A potential new feature to be added, or an improvement we could make label Jul 30, 2019
@rafegoldberg rafegoldberg changed the title Adding support fort $ref pointers to additionalProperties Adding support for $ref pointers to additionalProperties Jul 30, 2019
@erunion
Copy link
Member Author

erunion commented Jul 31, 2019

Another good view of the change on a spec that a customer is running in production:

Before

Screen Shot 2019-07-31 at 3 32 22 PM

After

screen_shot_2019-07-31_at_3 22 54_pm

Copy link
Contributor

@rafegoldberg rafegoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good to my eye.

@erunion erunion merged commit 3ee2fcc into master Jul 31, 2019
@erunion erunion deleted the bug/additionalProperties-ref branch July 31, 2019 23:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:enhancement A potential new feature to be added, or an improvement we could make
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants