Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue with readOnly property #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jscharett
Copy link
Contributor

JsonSchema specifies that the readOnly
property be camel-case, so we need to
map that over to the lower case javascript
property that is used internally.

PR Type

What changes does this PR include (check all that apply)?
[x ] Bugfix

Related issue / current behavior

When setting the readOnly property in JsonSchema, the value is ignored unless you specify it in lowercase. The spec defines the attribute to be lower camel-cased.

New behavior

readOnly properties are now properly mapped over to the internal lowercased name.

Does this PR introduce a breaking change?

[ ] Yes
[x ] No

JsonSchema specifies that the readOnly
property be camel-case, so we need to
map that over to the lower case javascript
property that is used internally.
@shamoons
Copy link

Can you submit this PR against https://github.com/shamoons/ng-json-schema-form

It seems this package is no longer maintained so I'm forking and plan to maintain it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants