Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/lib/src/shared/json-schema.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,12 @@ export function updateInputOptions(layoutNode, schema, jsf) {
}
}

// Map the readOnly property from JsonSchema's camelcased to non-camelcased
if (hasOwn(newOptions, 'readOnly')) {
newOptions.readonly = newOptions.readOnly;
delete newOptions.readOnly;
}

// If schema type is integer, enforce by setting multipleOf = 1
if (schema.type === 'integer' && !hasValue(newOptions.multipleOf)) {
newOptions.multipleOf = 1;
Expand Down