Skip to content

Commit

Permalink
Add patch-body schema
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian-recoseanu committed Dec 4, 2023
1 parent ed8a200 commit e1e8d1d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions APIs/schemas/patch-body.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "PATCH request body for invoking a method",
"title": "PATCH request body",
"required": [
"methodId"
],
"properties": {
"methodId": {
"type": "object",
"description": "ID structure for the target method",
"required": [
"level",
"index"
],
"properties": {
"level": {
"type": "integer",
"description": "Level component of the method ID",
"minimum": 1
},
"index": {
"type": "integer",
"description": "Index component of the method ID",
"minimum": 1
}
}
},
"arguments": {
"type": "object",
"description": "Method arguments. Arguments are specified as nested properties inside this object and their types are dictated by the specific MS-05-02 model for the method targeted. Arguments only need to be included for methods which have arguments and MUST be omitted if the method does not require any arguments."
}
}
}

0 comments on commit e1e8d1d

Please sign in to comment.