-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add ajv validation (MAPCO-6820) #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
66d4a29
feat: add config and schema
d1cffee
chore: update to new cleanup registry
736ec9c
feat: match vscode settings to boilerplate
e555680
feat: match config to new schema
52393bf
feat: update dockerfile
2d564aa
feat: update tsconfig
cfafba8
feat: update server building
7bfbc01
feat: update ci
4ef31e5
feat: add and remove important files
f76fe52
test: migrate to vitest
6736582
feat: add security to openai
bbcca1a
feat: add husky
7017656
feat: add domain to workflow
eyalr1100 3d97ba4
feat: upgrade redis image in workflow
6f0ba4e
chore: merge config exports
a2d2ec7
feat: fix half of the config problems
153f548
Merge branch 'feat/match-boilerplate' of https://github.com/MapColoni…
50d5d2c
fix: match configuration to new schema
eyalr1100 c44d5da
feat: add version
eyalr1100 e660cbb
feat: update redis version
eyalr1100 14f7287
chore: remove deprecated baseUrl
eyalr1100 0871236
feat: update config to match schema
eyalr1100 6356e02
fix: correctly use logger with await
eyalr1100 bf0cae9
chore: import type correctly
eyalr1100 09f3276
fix: import supertest correctly
eyalr1100 3053e0d
fix: fix ttl route
eyalr1100 1492acf
test: fix container registering and remove unknown
eyalr1100 87548b6
test: add create mock helper
eyalr1100 39cb378
fix: fix bug where key is read once, expires, and being read again
eyalr1100 88ba00c
fix: update package lock
eyalr1100 b4a67c4
chore: add space for workflow to register
eyalr1100 30fc072
feat: add type to kafka ssl in schema
2076f55
feat: revert to old redis host
fce36c6
chore: remove unnecessary resolve promisified logger
818b03d
chore: remove unnecessary kafka options type
8e49f44
chore: remove shared service name
eyalr1100 4b0c2d5
feat: downgrade to redis 4.7
eyalr1100 8e5d9bf
feat: make redis index not hardcoded 0
eyalr1100 d7201eb
feat: add ajv validation
9dbfc37
feat: move json parsing to the validator function
15c5d2b
feat: add set prototype to error
c0967f7
feat: return GeocodingResponseParseError instead of throwing
b4f2962
feat: make ca for kafka optional
eyalr1100 f3cf69a
Merge branch 'feat/match-boilerplate' into feat/add-ajv-validation
eyalr1100 47eb2ee
Merge remote-tracking branch 'origin/master' into feat/add-ajv-valida…
eyalr1100 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| {".":"1.0.0"} | ||
| { ".": "1.0.0" } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,13 @@ | ||
| import type { Mock, MockedObject } from 'vitest'; | ||
| import type { GeocodingResponse } from '@common/interfaces'; | ||
|
|
||
| export const createMock = <T>(partial: Partial<Record<keyof T, Mock>>): MockedObject<T> => partial as MockedObject<T>; | ||
|
|
||
| export const makeGeocodingResponseJson = (overrides: Partial<GeocodingResponse> = {}): string => | ||
| JSON.stringify({ | ||
| apiKey: 'test-api-key', | ||
| site: 'test-site', | ||
| response: {}, | ||
| respondedAt: '2024-01-01T00:00:00.000Z', | ||
| ...overrides, | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.