Skip to content

Commit

Permalink
[Issue 623] Update contact info on openapi (#653)
Browse files Browse the repository at this point in the history
[Issue 623] Update contact info on openapi

---------

Co-authored-by: nava-platform-bot <[email protected]>
  • Loading branch information
chouinar and nava-platform-bot authored Nov 7, 2023
1 parent e5f3625 commit d81f3bc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .grype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ ignore:
# https://github.com/anchore/grype/issues/1172
- vulnerability: GHSA-xqr8-7jwr-rhp7
- vulnerability: GHSA-7fh5-64p2-3v2j
# pip vulnerability, need to wait for the Python image to update to 23.x
# https://github.com/docker-library/python/blob/402b993af9ca7a5ee22d8ecccaa6197bfb957bc5/3.12/slim-bookworm/Dockerfile#L137
- vulnerability: GHSA-mq26-g339-26xf
8 changes: 4 additions & 4 deletions api/openapi.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ info:
title: Simpler Grants API
description: Back end API for simpler.grants.gov
contact:
name: Nava PBC Engineering
url: https://www.navapbc.com
email: [email protected]
name: Simpler Grants.gov
url: https://simpler.grants.gov/
email: [email protected]
version: 0.1.0
tags:
- name: Health
Expand Down Expand Up @@ -111,7 +111,7 @@ paths:
$ref: '#/components/schemas/OpportunitySearch'
security:
- ApiKeyAuth: []
openapi: 3.0.3
openapi: 3.1.0
components:
schemas:
ValidationError:
Expand Down
10 changes: 6 additions & 4 deletions api/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ def configure_app(app: APIFlask) -> None:
app.config["BASE_RESPONSE_SCHEMA"] = response_schema.ResponseSchema

# Set a few values for the Swagger endpoint
app.config["OPENAPI_VERSION"] = "3.0.3"
app.config["OPENAPI_VERSION"] = "3.1.0"

app.json.compact = False # type: ignore

# Set various general OpenAPI config values
app.info = {
"title": "Simpler Grants API",
"description": "Back end API for simpler.grants.gov",
"contact": {
"name": "Nava PBC Engineering",
"url": "https://www.navapbc.com",
"email": "[email protected]",
"name": "Simpler Grants.gov",
"url": "https://simpler.grants.gov/",
"email": "[email protected]",
},
}

Expand Down

0 comments on commit d81f3bc

Please sign in to comment.