Closed Aschen closed 6 years ago
Merging #205 into 1-dev will decrease coverage by
0.05%
. The diff coverage is76.92%
.
@@ Coverage Diff @@
## 1-dev #205 +/- ##
=========================================
- Coverage 89% 88.95% -0.06%
=========================================
Files 243 243
Lines 4364 4362 -2
=========================================
- Hits 3884 3880 -4
- Misses 453 454 +1
- Partials 27 28 +1
Impacted Files | Coverage Δ | |
---|---|---|
ms/pexpire.go | 100% <ø> (ø) |
:arrow_up: |
server/now.go | 100% <100%> (ø) |
:arrow_up: |
ms/pexpireat.go | 100% <100%> (ø) |
:arrow_up: |
document/search.go | 90.9% <33.33%> (-9.1%) |
:arrow_down: |
collection/validate_specifications.go | 87.5% <83.33%> (-2.5%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 1138e4c...8810da3. Read the comment docs.
What does this PR do?
Before the method
ValidationSpecifications
returned only a boolean that indicate the specification validity but in the API we are returning additional informations explaining why the specification is invalid.This PR change the return value of
ValidationSpecifications
method in theCollection
controller.Now the method return a
ValidationResponse
which is a structure containing three fields (like in the API):Valid
: specifications validityDetails
: array of string explaining each errorsDescription
: general error message:warning: I changed the internal/wrappers but they will be removed. See related PR in https://github.com/kuzzleio/sdk-c/pull/6, https://github.com/kuzzleio/sdk-cpp/pull/5 and https://github.com/kuzzleio/sdk-java/pull/8 instead
How should this be manually tested?
bash test.sh
Other changes
SearchResult