Skip to content

Commit

Permalink
Merge pull request #11 from jsightapi/bugfix/SERV-147
Browse files Browse the repository at this point in the history
Fix "JSight Server API v2.0.0"
  • Loading branch information
add2 authored Sep 14, 2022
2 parents da8508e + 3cd93a8 commit 400806d
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions jsight/jsight-server-api.jst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ TYPE @jdocExchange
"userTypes": { // {additionalProperties: "@userType", optional: true}
@userTypeName: @userType // {optional: true}
},
"userEnums": { // {additionalProperties: "@userRule", optional: true}
@userRuleName : @userRule // {optional: true}
"userEnums": { // {additionalProperties: "@userEnum", optional: true}
@userEnumName : @userEnum // {optional: true}
}
}

Expand All @@ -98,7 +98,6 @@ TYPE @tag
{
"name" : "@cats",
"title" : "/cats",
"annotation" : "Brief description of the tag",
"description" : "Tag description", // {optional: true}
"interactionGroups" : [
@tagInteractionGroup,
Expand Down Expand Up @@ -264,6 +263,14 @@ TYPE @userRule
# ]
}

#---------------------------------------------- USER ENUM -----------------------------------------

TYPE @userEnumName
@userRuleName

TYPE @userEnum
@userRule

#---------------------------------------------- LINK ----------------------------------------------

#TYPE @link
Expand Down Expand Up @@ -297,7 +304,7 @@ TYPE @schema
"@dog" // {type: "@userTypeName"}
],
"usedUserEnums": [ // {optional: true}
"@catSizeEnum" // {type: "@userRuleName"}
"@catSizeEnum" // {type: "@userEnumName"}
],
"example": "{\n \"id\": 123\n}" // {optional: true}
}
Expand Down Expand Up @@ -327,12 +334,13 @@ TYPE @jsightSchemaElement

TYPE @rule
{
"key" : @ruleNameEnum, // {optional: true}
"tokenType" : "object", // {type: "@tokenTypeEnum"}
"tokenType" : "object", // {type: "@tokenTypeEnum"} - All other properties depend on the value of this property.
"key" : @ruleNameEnum, // {optional: true} - Specified only for object properties.
"scalarValue": "@cat", /* {optional: true} - Specified only if "tokenType" specifies "string", "number", "boolean",
"annotation" or "null". */
"note" : "Note to the \n rule.", // {optional: true} - May contain line breaks.
"children" : [ // {optional: true} - specified only if tokenType: "array" or "object".
"null", "annotation" or "reference". */
"note" : "Note to the \n rule.", /* {optional: true} - Specified only for ENUM values, if necessary.
May contain line breaks. */
"children" : [ // {optional: true} - Specified only if tokenType: "array" or "object".
@rule
]
}
Expand Down

0 comments on commit 400806d

Please sign in to comment.