Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSubiros committed Dec 23, 2020
1 parent 293c807 commit 327a1f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions api/dimensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func getPositiveIntQueryParameter(queryVars url.Values, varKey string, defaultVa
// by parsing all values with key 'varKey' and splitting the values by commas, if they contain commas.
// Up to maxNumItems values are allowed in total.
func getQueryParamListValues(queryVars url.Values, varKey string, maxNumItems int) (items []string, err error) {
// get query paramters values for the provided key
// get query parameters values for the provided key
values, found := queryVars[varKey]
if !found {
return []string{}, nil
Expand Down Expand Up @@ -189,7 +189,7 @@ func (api *DatasetAPI) getDimensionOptions(w http.ResponseWriter, r *http.Reques
ids, err := getQueryParamListValues(r.URL.Query(), "id", MaxIDs())
if err != nil {
logData["query_params"] = r.URL.RawQuery
handleDimensionsErr(ctx, w, "failed to obtain list of IDs from request query paramters", err, logData)
handleDimensionsErr(ctx, w, "failed to obtain list of IDs from request query parameters", err, logData)
return
}

Expand All @@ -200,15 +200,15 @@ func (api *DatasetAPI) getDimensionOptions(w http.ResponseWriter, r *http.Reques
limit, err = getPositiveIntQueryParameter(r.URL.Query(), "limit", api.defaultLimit)
if err != nil {
logData["query_params"] = r.URL.RawQuery
handleDimensionsErr(ctx, w, "failed to obtain limit from request query paramters", err, logData)
handleDimensionsErr(ctx, w, "failed to obtain limit from request query parameters", err, logData)
return
}

// get offset from query parameters, or default value
offset, err = getPositiveIntQueryParameter(r.URL.Query(), "offset", api.defaultOffset)
if err != nil {
logData["query_params"] = r.URL.RawQuery
handleDimensionsErr(ctx, w, "failed to obtain offset from request query paramters", err, logData)
handleDimensionsErr(ctx, w, "failed to obtain offset from request query parameters", err, logData)
return
}
}
Expand Down
2 changes: 1 addition & 1 deletion swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ paths:
tags:
- "Public"
summary: "Get a list of options from a dimension"
description: "Get a list of options which appear in this dimension and dataset. By default all options are returned, but a subset can be requested by providing offset and limit query parameters, or by providing the list of opion IDs that we want, only the IDs that can be found will be returned."
description: "Get a list of options which appear in this dimension and dataset. By default all options are returned, but a subset can be requested by providing offset and limit query parameters, or by providing the list of option IDs, only the IDs that are found will be returned."
parameters:
- $ref: '#/parameters/dimension'
- $ref: '#/parameters/edition'
Expand Down

0 comments on commit 327a1f2

Please sign in to comment.