Skip to content

Commit

Permalink
Expand with domain metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mj52951 committed Dec 20, 2024
1 parent 06a8c46 commit c695476
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/schemas/domains.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The Licensed Work is (c) 2024 Sygma
SPDX-License-Identifier: LGPL-3.0-only
*/
import { domainSchema } from ".";
import { domainMetadataSchema, domainSchema } from ".";

export const domainsSchema = {
summary: "Get domains",
Expand All @@ -14,7 +14,8 @@ export const domainsSchema = {
schema: {
type: "array",
items: {
...domainSchema,
...domainSchema.properties,
...domainMetadataSchema.properties,
},
},
},
Expand Down
8 changes: 8 additions & 0 deletions src/api/schemas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ export const domainSchema = {
},
};

export const domainMetadataSchema = {
type: "object",
properties: {
iconURL: { type: "string", example: "https://example.com/icon1.png" },
explorerURL: { type: "string", example: "https://explorer.com/1" },
},
};

export const tokenSchema = {
tpye: "object",
properties: {
Expand Down

0 comments on commit c695476

Please sign in to comment.