Skip to content

Commit 725f5c5

Browse files
author
DylanBulmer
committed
update variable naming
1 parent 1e5d428 commit 725f5c5

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Location of environment variable is postfixed to `Config.{location}` (e.g. `Conf
4242
| `ENV` | `env` | Deployment envionment - `dev`, `qa`, `stage`, `prod` |
4343
| `HOSTNAME` | `hostname` | Deployment docker hostname |
4444
| `npm_package_name` | `name` | Deployment service name - example: codr-user-user |
45-
| `npm_package_version` | `version` | Deployment version - example: v1.0.0 |
45+
| `npm_package_version` | `version` | Deployment version - example: `1.0.0` |
4646
| `AWS_REGION` | `aws.region` | AWS - deployment region |
4747
| `AWS_SES_API_VERSION` | `aws.ses.api.version` | AWS SES - api version |
4848
| `AWS_SES_ACCESS_KEY` | `aws.ses.access.key` | AWS SES - IAM access key id |
@@ -62,20 +62,20 @@ Location of environment variable is postfixed to `Config.{location}` (e.g. `Conf
6262
| `KAFKA_CONSUMER_GROUP` | `kafka.consumer.group` | Kafka server - consumer group |
6363
| `MONGO_URI` | `mongo.uri` | MongoDB - server URL, please include username and password to this string |
6464
| `NODE_ENV` | `node.env` | Node environment - `development`,`production`, `testing` |
65-
| `NODE_VERSION` | `node.verison` | Node version - example: v16.19.1 |
65+
| `NODE_VERSION` | `node.verison` | Node version - example: `16.19.1` |
6666
| N/A | `node.modules` | Node modules - string array of all dependencies |
6767
| `YARN_VERSION` | `node.yarnVersion` | Node - package manager version |
6868
| `OPENAPI_INFO_TITLE` | `openapi.info.title` | OpenAPI - documentation title |
6969
| `OPENAPI_INFO_DESC` | `openapi.info.description` | OpenAPI - documentation description |
70-
| `OPENAPI_SERVER_ONE_HOST` | `openapi.server[0].host` | OpenAPI - server one host |
70+
| `OPENAPI_SERVER_ONE_URL` | `openapi.server[0].url` | OpenAPI - server one url |
7171
| `OPENAPI_SERVER_ONE_DESC` | `openapi.server[0].description` | OpenAPI - server one description |
72-
| `OPENAPI_SERVER_TWO_HOST` | `openapi.server[1].host` | OpenAPI - server two host |
72+
| `OPENAPI_SERVER_TWO_URL` | `openapi.server[1].url` | OpenAPI - server two url |
7373
| `OPENAPI_SERVER_TWO_DESC` | `openapi.server[1].description` | OpenAPI - server two description |
74-
| `OPENAPI_SERVER_THREE_HOST` | `openapi.server[2].host` | OpenAPI - server three host |
74+
| `OPENAPI_SERVER_THREE_URL` | `openapi.server[2].url` | OpenAPI - server three url |
7575
| `OPENAPI_SERVER_THREE_DESC` | `openapi.server[2].description` | OpenAPI - server three description |
76-
| `OPENAPI_SERVER_FOUR_HOST` | `openapi.server[3].host` | OpenAPI - server four host |
76+
| `OPENAPI_SERVER_FOUR_URL` | `openapi.server[3].url` | OpenAPI - server four url |
7777
| `OPENAPI_SERVER_FOUR_DESC` | `openapi.server[3].description` | OpenAPI - server four description |
78-
| `OPENAPI_SERVER_FIVE_HOST` | `openapi.server[4].host` | OpenAPI - server five host |
78+
| `OPENAPI_SERVER_FIVE_URL` | `openapi.server[4].url` | OpenAPI - server five url |
7979
| `OPENAPI_SERVER_FIVE_DESC` | `openapi.server[4].description` | OpenAPI - server five description |
8080

8181
## TODO

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codrjs/config",
3-
"version": "1.0.3-patch2",
3+
"version": "1.0.4",
44
"description": "Codr configuration, unified",
55
"main": "./cjs/index.js",
66
"module": "./esm/index.js",

src/config/OpenAPI.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface IOpenAPIServer {
2-
host: string;
2+
url: string;
33
description: string;
44
}
55

@@ -17,28 +17,28 @@ export const OpenAPIConfig: {
1717
];
1818
} = {
1919
info: {
20-
title: process.env.OPENAPI_TITLE as string,
21-
description: process.env.OPENAPI_DESC as string,
20+
title: process.env.OPENAPI_INFO_TITLE as string,
21+
description: process.env.OPENAPI_INFO_DESC as string,
2222
},
2323
servers: [
2424
{
25-
host: process.env.OPENAPI_SERVER_ONE_HOST as string,
25+
url: process.env.OPENAPI_SERVER_ONE_URL as string,
2626
description: process.env.OPENAPI_SERVER_ONE_DESC as string,
2727
},
2828
{
29-
host: process.env.OPENAPI_SERVER_TWO_HOST as string,
29+
url: process.env.OPENAPI_SERVER_TWO_URL as string,
3030
description: process.env.OPENAPI_SERVER_TWO_DESC as string,
3131
},
3232
{
33-
host: process.env.OPENAPI_SERVER_THREE_HOST as string,
33+
url: process.env.OPENAPI_SERVER_THREE_URL as string,
3434
description: process.env.OPENAPI_SERVER_THREE_DESC as string,
3535
},
3636
{
37-
host: process.env.OPENAPI_SERVER_FOUR_HOST as string,
37+
url: process.env.OPENAPI_SERVER_FOUR_URL as string,
3838
description: process.env.OPENAPI_SERVER_FOUR_DESC as string,
3939
},
4040
{
41-
host: process.env.OPENAPI_SERVER_FIVE_HOST as string,
41+
url: process.env.OPENAPI_SERVER_FIVE_URL as string,
4242
description: process.env.OPENAPI_SERVER_FIVE_DESC as string,
4343
},
4444
],

0 commit comments

Comments
 (0)