Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Broadbent committed Dec 7, 2023
1 parent c1d3455 commit a503699
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"preview": "concurrently \"http-server docs/public\" \"open http://127.0.0.1:8080\"",
"verify": "pnpm validate && pnpm build && pnpm lint",
"validate": "redocly lint internal --lint-config error",
"bundle:public": "redocly bundle public -o ./src/config/openapi-public.bundle.json",
"bundle:internal": "redocly bundle internal -o ./src/config/openapi-internal.bundle.json",
"generate": "openapi-typescript ./src/config/openapi-internal.bundle.json --output ./src/types/generated/openapi-schema.ts"
"bundle:public": "redocly bundle public -o src/config/openapi-public.bundle.json",
"bundle:internal": "redocly bundle internal -o src/config/openapi-internal.bundle.json",
"generate": "openapi-typescript src/config/openapi-internal.bundle.json -c redocly.yaml -o ./src/types/generated/openapi-schema.ts --immutable --alphabetize --path-params-as-types"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/config/responses/ErrorUnauthorized.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: An error returned when the requestor does not have access to the resource
description: An error returned when the requester does not have access to the resource
content:
application/json:
schema:
Expand Down
80 changes: 40 additions & 40 deletions src/types/generated/openapi-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,24 @@ export interface components {
schemas: {
/** City */
City: {
/** @description The country which the city is in */
country: string;
/** @description City Identifier */
id: string;
/** @description Name of the city */
name: string;
};
/** City */
CityCreate: {
/** @description The country which the city is in */
country: string;
/** @description Name of the city */
name: string;
};
/** Error Model */
ErrorModel: {
message: string;
status: number;
};
/**
* Route
Expand All @@ -58,90 +70,78 @@ export interface components {
Route: {
/** @description A city identifier */
from: string;
/** @description A city identifier */
to: string;
/**
* Format: int32
* @description The distance in miles between the two cities
*/
miles: number;
};
/** Error Model */
ErrorModel: {
status: number;
message: string;
};
/** City */
CityCreate: {
/** @description Name of the city */
name: string;
/** @description The country which the city is in */
country: string;
/** @description A city identifier */
to: string;
};
};
responses: {
/** @description Returns city result */
CityGet: {
content: {
"application/json": components["schemas"]["City"];
};
};
/** @description Returns cities result */
CityAllGet: {
content: {
"application/json": components["schemas"]["City"][];
};
};
/** @description Returns route result */
RouteGet: {
content: {
"application/json": components["schemas"]["Route"];
};
};
/** @description Returns route result */
RouteCreated: {
headers: {
Location: components["headers"]["Location"];
};
/** @description Returns city result */
CityGet: {
content: {
"application/json": components["schemas"]["Route"];
"application/json": components["schemas"]["City"];
};
};
ErrorResponse: components["responses"]["ErrorModel"];
/** @description An error returned when the request is invalid */
ErrorBadRequest: {
content: {
"application/json": {
message: string;
/** @enum {integer} */
status: 400;
message: string;
};
};
};
/** @description Error when there is a problem while fulfilling the request */
ErrorModel: {
content: {
"application/json": components["schemas"]["ErrorModel"];
};
};
/** @description An error returned when the requested resource cannot be found */
ErrorNotFound: {
content: {
"application/json": {
message: string;
/** @enum {integer} */
status: 404;
message: string;
};
};
};
/** @description An error returned when the requestor does not have access to the resource */
ErrorResponse: components["responses"]["ErrorModel"];
/** @description An error returned when the requester does not have access to the resource */
ErrorUnauthorized: {
content: {
"application/json": {
message: string;
/** @enum {integer} */
status: 401;
message: string;
};
};
};
/** @description Error when there is a problem while fulfilling the request */
ErrorModel: {
/** @description Returns route result */
RouteCreated: {
headers: {
Location: components["headers"]["Location"];
};
content: {
"application/json": components["schemas"]["ErrorModel"];
"application/json": components["schemas"]["Route"];
};
};
/** @description Returns route result */
RouteGet: {
content: {
"application/json": components["schemas"]["Route"];
};
};
};
Expand Down

0 comments on commit a503699

Please sign in to comment.