Skip to content

Commit

Permalink
Addressing review comments
Browse files Browse the repository at this point in the history
Signed-off-by: AbstractionFactory <[email protected]>
  • Loading branch information
abstractionfactory committed Dec 2, 2024
1 parent 10f635f commit 77e71a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/internal/search/searchtypes/index_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@ func (i IndexItem) Validate() error {
if i.Popularity < 0 {
return fmt.Errorf("the popularity cannot be negative")
}
if i.Warnings < 0 {
return fmt.Errorf("the warnings cannot be negative")
}
return nil
}
10 changes: 10 additions & 0 deletions backend/internal/server/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ definitions:
$ref: '#/definitions/IndexType'
version:
type: string
warnings:
format: int64
type: integer
type: object
IndexType:
type: string
Expand Down Expand Up @@ -535,6 +538,13 @@ definitions:
items:
$ref: '#/definitions/ProviderVersionDescriptor'
type: array
warnings:
description: |-
Warnings contains a list of warning strings issued to the OpenTofu client when fetching the provider info. This
typically indicates a deprecation or move of the provider to another location.
items:
type: string
type: array
required:
- addr
- description
Expand Down

0 comments on commit 77e71a2

Please sign in to comment.