Skip to content

Commit

Permalink
[api] oops i broke it again (#13697)
Browse files Browse the repository at this point in the history
run
`cargo run -p aptos-openapi-spec-generator -- -f yaml -o api/doc/spec.yaml`

after latest api update
  • Loading branch information
davidiw authored Jun 14, 2024
1 parent 5dbd02a commit 69d29a1
Show file tree
Hide file tree
Showing 22 changed files with 505 additions and 53 deletions.
209 changes: 189 additions & 20 deletions api/doc/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14462,6 +14462,17 @@
}
}
},
"Ed25519": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"$ref": "#/components/schemas/HexEncodedBytes"
}
}
},
"Ed25519Signature": {
"type": "object",
"description": "A single Ed25519 signature",
Expand Down Expand Up @@ -14846,6 +14857,17 @@
}
}
},
"Keyless": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"$ref": "#/components/schemas/HexEncodedBytes"
}
}
},
"MoveAbility": {
"type": "string"
},
Expand Down Expand Up @@ -15345,29 +15367,48 @@
"type": "object",
"oneOf": [
{
"$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)"
"$ref": "#/components/schemas/PublicKey_Ed25519"
},
{
"$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)"
"$ref": "#/components/schemas/PublicKey_Secp256k1Ecdsa"
},
{
"$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)"
"$ref": "#/components/schemas/PublicKey_Secp256r1Ecdsa"
},
{
"$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)"
"$ref": "#/components/schemas/PublicKey_Keyless"
}
],
"discriminator": {
"propertyName": "type",
"mapping": {
"ed25519": "#/components/schemas/PublicKey_string(HexEncodedBytes)",
"secp256k1_ecdsa": "#/components/schemas/PublicKey_string(HexEncodedBytes)",
"secp256r1_ecdsa": "#/components/schemas/PublicKey_string(HexEncodedBytes)",
"keyless": "#/components/schemas/PublicKey_string(HexEncodedBytes)"
"ed25519": "#/components/schemas/PublicKey_Ed25519",
"secp256k1_ecdsa": "#/components/schemas/PublicKey_Secp256k1Ecdsa",
"secp256r1_ecdsa": "#/components/schemas/PublicKey_Secp256r1Ecdsa",
"keyless": "#/components/schemas/PublicKey_Keyless"
}
}
},
"PublicKey_string(HexEncodedBytes)": {
"PublicKey_Ed25519": {
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"example": "ed25519"
}
}
},
{
"$ref": "#/components/schemas/Ed25519"
}
]
},
"PublicKey_Keyless": {
"allOf": [
{
"type": "object",
Expand All @@ -15382,7 +15423,45 @@
}
},
{
"$ref": "#/components/schemas/HexEncodedBytes"
"$ref": "#/components/schemas/Keyless"
}
]
},
"PublicKey_Secp256k1Ecdsa": {
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"example": "secp256k1_ecdsa"
}
}
},
{
"$ref": "#/components/schemas/Secp256k1Ecdsa"
}
]
},
"PublicKey_Secp256r1Ecdsa": {
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"example": "secp256r1_ecdsa"
}
}
},
{
"$ref": "#/components/schemas/Secp256r1Ecdsa"
}
]
},
Expand Down Expand Up @@ -15446,33 +15525,74 @@
}
}
},
"Secp256k1Ecdsa": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"$ref": "#/components/schemas/HexEncodedBytes"
}
}
},
"Secp256r1Ecdsa": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"$ref": "#/components/schemas/HexEncodedBytes"
}
}
},
"Signature": {
"type": "object",
"oneOf": [
{
"$ref": "#/components/schemas/Signature_string(HexEncodedBytes)"
"$ref": "#/components/schemas/Signature_Ed25519"
},
{
"$ref": "#/components/schemas/Signature_string(HexEncodedBytes)"
"$ref": "#/components/schemas/Signature_Secp256k1Ecdsa"
},
{
"$ref": "#/components/schemas/Signature_string(HexEncodedBytes)"
"$ref": "#/components/schemas/Signature_WebAuthn"
},
{
"$ref": "#/components/schemas/Signature_string(HexEncodedBytes)"
"$ref": "#/components/schemas/Signature_Keyless"
}
],
"discriminator": {
"propertyName": "type",
"mapping": {
"ed25519": "#/components/schemas/Signature_string(HexEncodedBytes)",
"secp256k1_ecdsa": "#/components/schemas/Signature_string(HexEncodedBytes)",
"web_authn": "#/components/schemas/Signature_string(HexEncodedBytes)",
"keyless": "#/components/schemas/Signature_string(HexEncodedBytes)"
"ed25519": "#/components/schemas/Signature_Ed25519",
"secp256k1_ecdsa": "#/components/schemas/Signature_Secp256k1Ecdsa",
"web_authn": "#/components/schemas/Signature_WebAuthn",
"keyless": "#/components/schemas/Signature_Keyless"
}
}
},
"Signature_string(HexEncodedBytes)": {
"Signature_Ed25519": {
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"example": "ed25519"
}
}
},
{
"$ref": "#/components/schemas/Ed25519"
}
]
},
"Signature_Keyless": {
"allOf": [
{
"type": "object",
Expand All @@ -15487,7 +15607,45 @@
}
},
{
"$ref": "#/components/schemas/HexEncodedBytes"
"$ref": "#/components/schemas/Keyless"
}
]
},
"Signature_Secp256k1Ecdsa": {
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"example": "secp256k1_ecdsa"
}
}
},
{
"$ref": "#/components/schemas/Secp256k1Ecdsa"
}
]
},
"Signature_WebAuthn": {
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"example": "web_authn"
}
}
},
{
"$ref": "#/components/schemas/WebAuthn"
}
]
},
Expand Down Expand Up @@ -16287,6 +16445,17 @@
}
}
},
"WebAuthn": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"$ref": "#/components/schemas/HexEncodedBytes"
}
}
},
"WriteModule": {
"type": "object",
"description": "Write a new module or update an existing one",
Expand Down
Loading

0 comments on commit 69d29a1

Please sign in to comment.