Commit 161b5c1
Changed files (2)
lib
scim
kit
v2
lib/scim/kit/v2/templates/attribute_type.json.jbuilder
@@ -1,18 +1,19 @@
# frozen_string_literal: true
+json.key_format! camelize: :lower
json.description description
-json.multiValued multi_valued
+json.multi_valued multi_valued
json.mutability mutability
json.name name
json.required required
json.returned returned
json.type type
json.uniqueness uniqueness
-json.caseExact(case_exact) if string? || reference?
-json.referenceTypes(reference_types) if reference?
-json.canonicalValues(canonical_values) if canonical_values
+json.case_exact(case_exact) if string? || reference?
+json.reference_types(reference_types) if reference?
+json.canonical_values(canonical_values) if canonical_values
if complex?
- json.subAttributes attributes do |attribute|
+ json.sub_attributes attributes do |attribute|
render attribute, json: json
end
end
lib/scim/kit/v2/templates/schema.json.jbuilder
@@ -1,10 +1,11 @@
# frozen_string_literal: true
+json.key_format! camelize: :lower
json.id id
json.name name
json.description description
json.meta do
- json.resourceType 'Schema'
+ json.resource_type 'Schema'
json.location location
end
json.attributes attributes do |attribute|