Skip to content

Commit

Permalink
Make endpoints.yaml version not required to be 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
binoyPeries committed Sep 12, 2024
1 parent 2f82020 commit 3da61df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36087,7 +36087,6 @@ const path = __nccwpck_require__(1017);

// constants
const ALLOWED_COMPONENT_YAML_VERSIONS = ["0.9", "1.0", "1.1"];
const ALLOWED_ENDPOINT_YAML_VERSIONS = ["0.1"];
const ALLOWED_TYPES = ["REST", "GraphQL", "GRPC", "TCP", "UDP", "WS"];
const ALLOWED_NETWORK_VISIBILITIES = ["Public", "Project", "Organization"];
const BASE_PATH_REQUIRED_TYPES = ["REST", "GraphQL", "WS"];
Expand Down Expand Up @@ -36334,7 +36333,7 @@ const componentYamlSchemaV1D0 = (srcDir) =>
// endpointYamlSchema - Schema for endpoints.yaml
const endpointYamlSchemaV0D1 = (srcDir) =>
yup.object().shape({
version: yup.string().required().oneOf(ALLOWED_ENDPOINT_YAML_VERSIONS),
version: yup.string().required(),
endpoints: endpointSchemaV0D1(srcDir).required().min(0),
});

Expand Down
3 changes: 1 addition & 2 deletions schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const path = require("path");

// constants
const ALLOWED_COMPONENT_YAML_VERSIONS = ["0.9", "1.0", "1.1"];
const ALLOWED_ENDPOINT_YAML_VERSIONS = ["0.1"];
const ALLOWED_TYPES = ["REST", "GraphQL", "GRPC", "TCP", "UDP", "WS"];
const ALLOWED_NETWORK_VISIBILITIES = ["Public", "Project", "Organization"];
const BASE_PATH_REQUIRED_TYPES = ["REST", "GraphQL", "WS"];
Expand Down Expand Up @@ -252,7 +251,7 @@ const componentYamlSchemaV1D0 = (srcDir) =>
// endpointYamlSchema - Schema for endpoints.yaml
const endpointYamlSchemaV0D1 = (srcDir) =>
yup.object().shape({
version: yup.string().required().oneOf(ALLOWED_ENDPOINT_YAML_VERSIONS),
version: yup.string().required(),
endpoints: endpointSchemaV0D1(srcDir).required().min(0),
});

Expand Down

0 comments on commit 3da61df

Please sign in to comment.