Skip to content

Commit

Permalink
Compactify json (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwooo authored Oct 22, 2022
1 parent 5c64bf1 commit 5bd441b
Show file tree
Hide file tree
Showing 84 changed files with 1,978 additions and 3,391 deletions.
65 changes: 13 additions & 52 deletions sources/agileaccelerator-source/resources/schemas/works.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,52 +21,28 @@
"type": "string"
},
"agf__Story_Points__c": {
"type": [
"number",
"null"
]
"type": ["number", "null"]
},
"agf__Priority__c": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"agf__Description__c": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"agf__Parent_ID__c": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"CreatedById": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"agf__Epic__c": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"agf__Sprint__c": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"CreatedBy": {
"type": [
"object",
"null"
],
"type": ["object", "null"],
"properties": {
"Id": {
"type": "string"
Expand All @@ -83,10 +59,7 @@
}
},
"agf__Epic__r": {
"type": [
"object",
"null"
],
"type": ["object", "null"],
"properties": {
"Id": {
"type": "string"
Expand All @@ -95,10 +68,7 @@
"type": "string"
},
"agf__Description__c": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"agf__Health__c": {
"type": "string"
Expand Down Expand Up @@ -129,10 +99,7 @@
}
},
"agf__Sprint__r": {
"type": [
"object",
"null"
],
"type": ["object", "null"],
"properties": {
"Id": {
"type": "string"
Expand All @@ -150,19 +117,13 @@
"type": "string"
},
"agf__Committed_Points__c": {
"type": [
"number",
"null"
]
"type": ["number", "null"]
},
"agf__Committed_Story_Points_Completed__c": {
"type": "number"
},
"agf__Completed_Story_Points__c": {
"type": [
"number",
"null"
]
"type": ["number", "null"]
},
"agf__Completion_Committed_Story_Points__c": {
"type": "number"
Expand Down
4 changes: 1 addition & 3 deletions sources/agileaccelerator-source/resources/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
"server_url": {
"type": "string",
"title": "Server URL",
"example": [
"https://test.my.salesforce.com"
],
"example": ["https://test.my.salesforce.com"],
"description": "The API URL for fetching data from AgileAccelerator"
},
"client_id": {
Expand Down
10 changes: 5 additions & 5 deletions sources/azure-repos-source/resources/schemas/pullrequests.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"type": "string"
},
"closedDate": {
"type": ["string","null"]
"type": ["string", "null"]
},
"title": {
"type": "string"
Expand Down Expand Up @@ -224,17 +224,17 @@
}
}
},
"changeCounts":{
"changeCounts": {
"type": "object",
"properties": {
"Edit": {
"type": ["number","null"]
"type": ["number", "null"]
},
"Add": {
"type": ["number","null"]
"type": ["number", "null"]
},
"Delete": {
"type": ["number","null"]
"type": ["number", "null"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion sources/azure-repos-source/resources/schemas/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": "string"
},
"originId": {
"type": ["string","null"]
"type": ["string", "null"]
},
"displayName": {
"type": "string"
Expand Down
6 changes: 1 addition & 5 deletions sources/azure-repos-source/resources/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Azure Repos Spec",
"type": "object",
"required": [
"access_token",
"organization",
"project"
],
"required": ["access_token", "organization", "project"],
"additionalProperties": true,
"properties": {
"access_token": {
Expand Down
45 changes: 9 additions & 36 deletions sources/azureactivedirectory-source/resources/schemas/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@
"type": "string"
},
"deletedDateTime": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"classification": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"creationOptions": {
"type": "array",
Expand All @@ -24,10 +18,7 @@
}
},
"createdDateTime": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"description": {
"type": "string"
Expand All @@ -36,10 +27,7 @@
"type": "string"
},
"expirationDateTime": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"groupTypes": {
"type": "array",
Expand All @@ -48,34 +36,19 @@
}
},
"mail": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"mailEnabled": {
"type": [
"boolean",
"null"
]
"type": ["boolean", "null"]
},
"mailNickname": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"membershipRule": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"membershipRuleProcessingState": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"members": {
"type": "array",
Expand Down
70 changes: 14 additions & 56 deletions sources/azureactivedirectory-source/resources/schemas/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,96 +12,54 @@
}
},
"displayName": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"givenName": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"mobilePhone": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"officeLocation": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"preferredLanguage": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"surname": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"userPrincipalName": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"department": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"postalCode": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"createdDateTime": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"streetAddress": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"identities": {
"type": "array",
"item": {
"signInType": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"issuer": {
"type": "string"
},
"issuerAssignedId": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
}
}
},
"manager": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
}
}
}
6 changes: 1 addition & 5 deletions sources/azureactivedirectory-source/resources/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Azure Active Directory Spec",
"type": "object",
"required": [
"client_id",
"client_secret",
"tenant_id"
],
"required": ["client_id", "client_secret", "tenant_id"],
"additionalProperties": true,
"properties": {
"client_id": {
Expand Down
Loading

0 comments on commit 5bd441b

Please sign in to comment.