Skip to content

Commit

Permalink
generating api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-aptos committed Jan 16, 2025
1 parent cf6bb82 commit 01e413d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
43 changes: 42 additions & 1 deletion api/doc/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -13959,6 +13959,21 @@
},
"components": {
"schemas": {
"AbstractionSignature": {
"type": "object",
"required": [
"function_info",
"auth_data"
],
"properties": {
"function_info": {
"type": "string"
},
"auth_data": {
"$ref": "#/components/schemas/HexEncodedBytes"
}
}
},
"AccountData": {
"type": "object",
"description": "Account data\n\nA simplified version of the onchain Account resource",
Expand Down Expand Up @@ -13993,6 +14008,9 @@
},
{
"$ref": "#/components/schemas/AccountSignature_NoAccountSignature"
},
{
"$ref": "#/components/schemas/AccountSignature_AbstractionSignature"
}
],
"discriminator": {
Expand All @@ -14002,10 +14020,33 @@
"multi_ed25519_signature": "#/components/schemas/AccountSignature_MultiEd25519Signature",
"single_key_signature": "#/components/schemas/AccountSignature_SingleKeySignature",
"multi_key_signature": "#/components/schemas/AccountSignature_MultiKeySignature",
"no_account_signature": "#/components/schemas/AccountSignature_NoAccountSignature"
"no_account_signature": "#/components/schemas/AccountSignature_NoAccountSignature",
"abstraction_signature": "#/components/schemas/AccountSignature_AbstractionSignature"
}
}
},
"AccountSignature_AbstractionSignature": {
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"abstraction_signature"
],
"example": "abstraction_signature"
}
}
},
{
"$ref": "#/components/schemas/AbstractionSignature"
}
]
},
"AccountSignature_Ed25519Signature": {
"allOf": [
{
Expand Down
24 changes: 24 additions & 0 deletions api/doc/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10438,6 +10438,16 @@ paths:
operationId: view
components:
schemas:
AbstractionSignature:
type: object
required:
- function_info
- auth_data
properties:
function_info:
type: string
auth_data:
$ref: '#/components/schemas/HexEncodedBytes'
AccountData:
type: object
description: |-
Expand Down Expand Up @@ -10468,6 +10478,7 @@ components:
- $ref: '#/components/schemas/AccountSignature_SingleKeySignature'
- $ref: '#/components/schemas/AccountSignature_MultiKeySignature'
- $ref: '#/components/schemas/AccountSignature_NoAccountSignature'
- $ref: '#/components/schemas/AccountSignature_AbstractionSignature'
discriminator:
propertyName: type
mapping:
Expand All @@ -10476,6 +10487,19 @@ components:
single_key_signature: '#/components/schemas/AccountSignature_SingleKeySignature'
multi_key_signature: '#/components/schemas/AccountSignature_MultiKeySignature'
no_account_signature: '#/components/schemas/AccountSignature_NoAccountSignature'
abstraction_signature: '#/components/schemas/AccountSignature_AbstractionSignature'
AccountSignature_AbstractionSignature:
allOf:
- type: object
required:
- type
properties:
type:
type: string
enum:
- abstraction_signature
example: abstraction_signature
- $ref: '#/components/schemas/AbstractionSignature'
AccountSignature_Ed25519Signature:
allOf:
- type: object
Expand Down

0 comments on commit 01e413d

Please sign in to comment.