Skip to content

Commit

Permalink
Added required block in schema file
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorzavodnik authored and malhussan committed Jul 30, 2024
1 parent bfdb82c commit fbab13c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/api/PlatformSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ export abstract class PlatformSetup<T extends PlatformConfig> {
default: id,
});

const type = "custom"
const type = await Input.prompt({
message: "Define a type",
hint: "The type will be displayed in the Readme file",
default: id,
})

return { id, name, type };
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/custom/CustomPlatformSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Dir } from "../../cli/DirectoryGenerator.ts";
import { PlatformSetup } from "../PlatformSetup.ts";

export class CustomPlatformSetup extends PlatformSetup<PlatformConfigCustom> {
constructor(private readonly) {
constructor() {
super();
}

Expand Down
6 changes: 2 additions & 4 deletions src/model/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,11 @@
"name": {
"type": "string"
},
"cli": {
"$ref": "#/definitions/CliToolEnv"
},
"collie": {
"$ref": "#/definitions/CollieConfig"
}
}
},
"required": ["name", "type"]
},
"CollieConfig": {
"type": "object",
Expand Down

0 comments on commit fbab13c

Please sign in to comment.