Skip to content

Commit

Permalink
pretty-print all JSON according to style guide adobe#22
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Dec 8, 2017
1 parent 5bd7f22 commit 7dbc835
Show file tree
Hide file tree
Showing 106 changed files with 2,088 additions and 1,849 deletions.
60 changes: 32 additions & 28 deletions extensions/aem/user.schema.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm-extensions/aem/user",
"title": "AEM User",
"description": "This model represents an [AEM User](https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/api/security/user/User.html). The associated principal with this AEM User is the principal returned by [`User.getPrincipal()`](https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/api/security/user/Authorizable.html#getPrincipal()).",
"definitions": {
"user": {
"type": "object",
"properties": {
"id": {
"description": "The value `User.getPrincipal().getName()`. This identifier is unique and persistent per AEM repository, with one caveat, that this identifier could be reassigned.",
"type": "string"
},
"type": {
"type": "string",
"const": "https://ns.adobe.com/xdm/aem/user"
}
}
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm-extensions/aem/user",
"title": "AEM User",
"description": "This model represents an [AEM User](https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/api/security/user/User.html). The associated principal with this AEM User is the principal returned by [`User.getPrincipal()`](https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/api/security/user/Authorizable.html#getPrincipal()).",
"definitions": {
"user": {
"type": "object",
"properties": {
"id": {
"description": "The value `User.getPrincipal().getName()`. This identifier is unique and persistent per AEM repository, with one caveat, that this identifier could be reassigned.",
"type": "string"
},
"type": {
"type": "string",
"const": "https://ns.adobe.com/xdm/aem/user"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/principal"
},
"allOf": [
{ "$ref": "https://ns.adobe.com/xdm/common/principal" },
{ "$ref": "#/definitions/user" }
]
}
{
"$ref": "#/definitions/user"
}
]
}
68 changes: 36 additions & 32 deletions extensions/ims/organization.schema.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm-extensions/ims/organization",
"title": "IMS Organization",
"description": "This model represents a IMS Organization. The IMS organization prinicpal is a organization account under Adobe's identity management system (IMS).",
"definitions": {
"organization": {
"type": "object",
"properties": {
"identity_provider": {
"type": "string",
"const": "ims"
},
"id": {
"description": "Principal id identifies an organization in IMS. It is a unique and persitent identifier which is allocated at the time the organization is created in the system. An organization's admin can find this value by logging into the [adminconsole](https://adminconsole.adobe.com) and parsing the resource URL they are redirected to.",
"type": "string"
},
"type": {
"type": "string",
"const": "https://ns.adobe.com/xdm-extensions/ims/organization"
}
}
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm-extensions/ims/organization",
"title": "IMS Organization",
"description": "This model represents a IMS Organization. The IMS organization prinicpal is a organization account under Adobe's identity management system (IMS).",
"definitions": {
"organization": {
"type": "object",
"properties": {
"identity_provider": {
"type": "string",
"const": "ims"
},
"id": {
"description": "Principal id identifies an organization in IMS. It is a unique and persitent identifier which is allocated at the time the organization is created in the system. An organization's admin can find this value by logging into the [adminconsole](https://adminconsole.adobe.com) and parsing the resource URL they are redirected to.",
"type": "string"
},
"type": {
"type": "string",
"const": "https://ns.adobe.com/xdm-extensions/ims/organization"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/principal"
},
"allOf": [
{ "$ref": "https://ns.adobe.com/xdm/common/principal" },
{ "$ref": "#/definitions/organization" }
]
}
{
"$ref": "#/definitions/organization"
}
]
}
68 changes: 36 additions & 32 deletions extensions/ims/user.schema.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm-extensions/ims/user",
"title": "IMS User",
"description": "This model represents an authenticated IMS User. The IMS user prinicpal is a user account under Adobe's identity management system (IMS).",
"definitions": {
"user": {
"type": "object",
"properties": {
"identity_provider": {
"type": "string",
"const": "ims"
},
"id": {
"description": "Principal id identifies a user account in IMS. Its value is equivalent to the standard claim, `sub` as mentioned in the [openid connect 1.0 standard claims](http://openid.net/specs/openid-connect-core-1_0.html#StandardClaim). This value can be obtained by fetching the [userinfo resource](http://openid.net/specs/openid-connect-core-1_0.html#UserInfo) for a particular user [in IMS](https://wiki.corp.adobe.com/display/ims/IMS+API+-+userinfo).",
"type": "string"
},
"type": {
"type": "string",
"const": "https://ns.adobe.com/xdm-extensions/ims/user"
}
}
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm-extensions/ims/user",
"title": "IMS User",
"description": "This model represents an authenticated IMS User. The IMS user prinicpal is a user account under Adobe's identity management system (IMS).",
"definitions": {
"user": {
"type": "object",
"properties": {
"identity_provider": {
"type": "string",
"const": "ims"
},
"id": {
"description": "Principal id identifies a user account in IMS. Its value is equivalent to the standard claim, `sub` as mentioned in the [openid connect 1.0 standard claims](http://openid.net/specs/openid-connect-core-1_0.html#StandardClaim). This value can be obtained by fetching the [userinfo resource](http://openid.net/specs/openid-connect-core-1_0.html#UserInfo) for a particular user [in IMS](https://wiki.corp.adobe.com/display/ims/IMS+API+-+userinfo).",
"type": "string"
},
"type": {
"type": "string",
"const": "https://ns.adobe.com/xdm-extensions/ims/user"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/principal"
},
"allOf": [
{ "$ref": "https://ns.adobe.com/xdm/common/principal" },
{ "$ref": "#/definitions/user" }
]
}
{
"$ref": "#/definitions/user"
}
]
}
2 changes: 1 addition & 1 deletion schemas/assets/artboard.example.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"origin_y": 0,
"origin_x": 256,
"unit": "pixels"
}
}
12 changes: 8 additions & 4 deletions schemas/assets/artboard.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"$schema": "http://json-schema.org/schema#",
"$id": "https://ns.adobe.com/xdm/assets/artboard",
"title": "Artboard",
"description":"",
"description": "",
"definitions": {
"artboard": {
"properties": {
Expand All @@ -20,7 +20,11 @@
}
},
"allOf": [
{"$ref":"#/definitions/artboard"},
{"$ref":"https://ns.adobe.com/xdm/assets/variable-unit-rectangular#/definitions/rectangular"}
{
"$ref": "#/definitions/artboard"
},
{
"$ref": "https://ns.adobe.com/xdm/assets/variable-unit-rectangular#/definitions/rectangular"
}
]
}
}
2 changes: 1 addition & 1 deletion schemas/assets/asset.example.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"xdm:size": 1632418,
"xdm:path": "here",
"xdm:etag": "15"
}
}
Loading

0 comments on commit 7dbc835

Please sign in to comment.