Skip to content

Commit 38d1b3c

Browse files
tidy code
1 parent c749aaa commit 38d1b3c

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

api/docs/docs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ const docTemplate = `{
975975
},
976976
"/discountPrograms": {
977977
"get": {
978-
"description": "\"Returns paginated list of discounts matching the query's string-typed key-value pairs. See offset for more details on pagination.\"",
978+
"description": "\"Returns paginated list of discounts filtered using field-specific keyword searches or global fuzzy search. See offset for more details on pagination.\"",
979979
"produces": [
980980
"application/json"
981981
],
@@ -992,7 +992,7 @@ const docTemplate = `{
992992
},
993993
{
994994
"type": "string",
995-
"description": "The discount's category.",
995+
"description": "The discount's category (exact match with suggestions).",
996996
"name": "category",
997997
"in": "query"
998998
},
@@ -1016,7 +1016,7 @@ const docTemplate = `{
10161016
},
10171017
{
10181018
"type": "string",
1019-
"description": "Full text search of all discount's fields.",
1019+
"description": "Fuzzy search, must be used alone.",
10201020
"name": "q",
10211021
"in": "query"
10221022
}

api/docs/swagger.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,16 +1619,16 @@ paths:
16191619
- Courses
16201620
/discountPrograms:
16211621
get:
1622-
description: '"Returns paginated list of discounts matching the query''s string-typed
1623-
key-value pairs. See offset for more details on pagination."'
1622+
description: '"Returns paginated list of discounts filtered using field-specific
1623+
keyword searches or global fuzzy search. See offset for more details on pagination."'
16241624
operationId: discountPrograms
16251625
parameters:
16261626
- description: The starting position of the current page of discounts (e.g.
16271627
For starting at the 17th discount, offset=16).
16281628
in: query
16291629
name: offset
16301630
type: number
1631-
- description: The discount's category.
1631+
- description: The discount's category (exact match with suggestions).
16321632
in: query
16331633
name: category
16341634
type: string
@@ -1644,7 +1644,7 @@ paths:
16441644
in: query
16451645
name: discount
16461646
type: string
1647-
- description: Full text search of all discount's fields.
1647+
- description: Fuzzy search, must be used alone.
16481648
in: query
16491649
name: q
16501650
type: string

api/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0=
131131
github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM=
132132
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
133133
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
134-
github.com/googleapis/enterprise-certificate-proxy v0.3.5 h1:VgzTY2jogw3xt39CusEnFJWm7rlsq5yL5q9XdLOuP5g=
135-
github.com/googleapis/enterprise-certificate-proxy v0.3.5/go.mod h1:MkHOF77EYAE7qfSuSS9PU6g4Nt4e11cnsDUowfwewLA=
136-
github.com/googleapis/gax-go/v2 v2.14.1 h1:hb0FFeiPaQskmvakKu5EbCbpntQn48jyHuvrkurSS/Q=
137-
github.com/googleapis/gax-go/v2 v2.14.1/go.mod h1:Hb/NubMaVM88SrNkvl8X/o8XWwDJEPqouaLeN2IUxoA=
134+
github.com/googleapis/enterprise-certificate-proxy v0.3.6 h1:GW/XbdyBFQ8Qe+YAmFU9uHLo7OnF5tL52HFAgMmyrf4=
135+
github.com/googleapis/enterprise-certificate-proxy v0.3.6/go.mod h1:MkHOF77EYAE7qfSuSS9PU6g4Nt4e11cnsDUowfwewLA=
136+
github.com/googleapis/gax-go/v2 v2.15.0 h1:SyjDc1mGgZU5LncH8gimWo9lW1DtIfPibOG81vgd/bo=
137+
github.com/googleapis/gax-go/v2 v2.15.0/go.mod h1:zVVkkxAQHa1RQpg9z2AUCMnKhi0Qld9rcmyfL1OZhoc=
138138
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
139139
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
140140
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=

api/schema/objects.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,6 @@ type EmailRequest struct {
382382
Embeds []EmailAttachment `json:"embeds,omitempty"`
383383
}
384384

385-
386-
387385
// Type for all API responses
388386
type APIResponse[T any] struct {
389387
Status int `json:"status"`

0 commit comments

Comments
 (0)