Skip to content

Commit

Permalink
add missing fields to config schema
Browse files Browse the repository at this point in the history
add public param to config schema
  • Loading branch information
TimurRin committed Sep 16, 2024
1 parent 07d084e commit bae73a3
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export interface AncaConfig {
monorepo?: AncaConfigMonorepo[];
namings?: AncaConfigNamings;
organizations?: AncaConfigOrganization[];
public?: boolean;
stack?: AncaConfigStack;
type?: AncaConfigType;
}
Expand Down Expand Up @@ -189,6 +190,9 @@ export const ANCA_WORKFOLDER_SCHEMA = {
code: {
type: "string",
},
gitOrigin: {
type: "string",
},
},
required: ["code"],
type: "object",
Expand Down Expand Up @@ -298,6 +302,14 @@ export const ANCA_CONFIG_SCHEMA = {
},
development: {
properties: {
nodejsOpenapi: {
properties: {
modelsLocation: { type: "string" },
modelsLocationType: { enum: ["file", "folder"], type: "string" },
modelsModule: { type: "string" },
},
type: "object",
},
nodejsSeaModules: {
properties: {
sqlite3: { type: "boolean" },
Expand Down Expand Up @@ -333,6 +345,35 @@ export const ANCA_CONFIG_SCHEMA = {
downloadBinariesUrl: {
type: "string",
},
monorepo: {
items: {
properties: {
data: {
properties: {
development: {
$ref: "#/properties/development",
},
namings: {
$ref: "#/properties/namings",
},
stack: {
enum: ["nodejs", "unsupported"],
type: "string",
},
type: {
enum: ["api", "app", "dts", "library", "project", "web"],
type: "string",
},
},
type: "object",
},
name: { type: "string" },
},
required: ["data", "name"],
type: "object",
},
type: "array",
},
namings: {
properties: {
npmPackage: { type: "string" },
Expand All @@ -343,6 +384,21 @@ export const ANCA_CONFIG_SCHEMA = {
required: ["text"],
type: "object",
},
organizations: {
items: {
properties: {
name: { type: "string" },
text: { type: "string" },
url: { type: "string" },
},
required: ["name"],
type: "object",
},
type: "array",
},
public: {
type: "boolean",
},
stack: {
enum: ["nodejs", "unsupported"],
type: "string",
Expand Down

0 comments on commit bae73a3

Please sign in to comment.