Skip to content

Commit

Permalink
Merge pull request #13 from binoyPeries/main
Browse files Browse the repository at this point in the history
Make endpoints.yaml version not required to be 0.1
  • Loading branch information
binoyPeries committed Sep 12, 2024
2 parents 2f82020 + 3da61df commit ad2537c
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 ad2537c

Please sign in to comment.