-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
search request + tests + schema + case-sensitive (#15)
* change route for search * add test for no result + schema for server response * adhere to lint * fix Manifest * suggested changes and schema validation * add option for case-sensitive
- Loading branch information
1 parent
ef8c1bc
commit e27c881
Showing
9 changed files
with
165 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"title": "Model", | ||
"type": "object", | ||
"properties": { | ||
"matches": { | ||
"title": "Matches", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/fileMatches" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"matches" | ||
], | ||
"definitions": { | ||
"match": { | ||
"title": "match", | ||
"type": "object", | ||
"properties": { | ||
"line": { | ||
"title": "Line", | ||
"type": "string" | ||
}, | ||
"match": { | ||
"title": "Match", | ||
"type": "string" | ||
}, | ||
"start": { | ||
"title": "Start", | ||
"type": "integer" | ||
}, | ||
"end": { | ||
"title": "End", | ||
"type": "integer" | ||
}, | ||
"line_number": { | ||
"title": "Line Number", | ||
"type": "integer" | ||
}, | ||
"absolute_offset": { | ||
"title": "Absolute Offset", | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
"line", | ||
"match", | ||
"start", | ||
"end", | ||
"line_number", | ||
"absolute_offset" | ||
] | ||
}, | ||
"fileMatches": { | ||
"title": "fileMatches", | ||
"type": "object", | ||
"properties": { | ||
"path": { | ||
"title": "Path", | ||
"type": "string" | ||
}, | ||
"matches": { | ||
"title": "Matches", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/match" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"path", | ||
"matches" | ||
] | ||
} | ||
} | ||
} |
This file contains 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 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ tests= | |
pytest-asyncio | ||
pytest-cov | ||
pytest-tornasync | ||
jsonschema |
This file contains 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 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