Skip to content

Commit fdd6878

Browse files
Work around issue in swagger generator
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
1 parent 7ae9e01 commit fdd6878

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/i18n/en_base_field_descriptions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ var (
4343
FilterJSONSkip = ffm("FilterJSON.skip", "Number of results to skip before returning entries, for skip+limit based pagination")
4444
FilterJSONSort = ffm("FilterJSON.sort", "Array of fields to sort by. A '-' prefix on a field requests that field is sorted in descending order")
4545
FilterJSONCount = ffm("FilterJSON.count", "If true, the total number of entries that could be returned from the database will be calculated and returned as a 'total' (has a performance cost)")
46-
FilterJSONOr = ffm("FilterJSON.or", "Array of sub-queries where any sub-query can match to return results (OR combined). Note that within each sub-query all filters must match (AND combined)")
47-
FilterJSONAnd = ffm("FilterJSON.and", "Array of sub-queries where any sub-query can match to return results (AND combined). Allows complex construction, such as an AND of two nested OR sub-queries.")
46+
FilterJSONOr = ffm("FilterJSON.or", "Array of sub-queries") // Note due to complex issue in swagger generator AND/OR need to be identical
47+
FilterJSONAnd = ffm("FilterJSON.and", "Array of sub-queries") // ^^^ the `description` field is getting pushed to the sub-schema definition, and is non-deterministic
4848
FilterJSONFields = ffm("FilterJSON.fields", "Fields to return in the response")
4949

5050
EventStreamBatchSize = ffm("eventstream.batchSize", "Maximum number of events to deliver in each batch")

0 commit comments

Comments
 (0)