Skip to content

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.

2 participants