Skip to content

Commit

Permalink
Add semantic_version to cluster list/get responses (#783)
Browse files Browse the repository at this point in the history
* Add semantic_version to cluster list/get responses

* update sample values to be valid

* add example on response

---------

Co-authored-by: Daniel Weinshenker <[email protected]>
Co-authored-by: mikeberezowski <[email protected]>
  • Loading branch information
3 people authored Mar 31, 2023
1 parent 27db142 commit ac5e0cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions specification/resources/databases/models/database_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ properties:
description: A unique, human-readable name referring to a database cluster.
engine:
type: string
example: pg
example: mysql
enum:
- pg
- mysql
Expand All @@ -24,8 +24,13 @@ properties:
are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" for Redis, and "mongodb" for MongoDB.
version:
type: string
example: '10'
example: '8'
description: A string representing the version of the database engine in use for the cluster.
semantic_version:
type: string
example: '8.0.28'
description: A string representing the semantic version of the database engine in use for the cluster.
readOnly: true
num_nodes:
type: integer
example: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ content:
name: backend
engine: pg
version: '14'
semantic_version: '14.5'
connection:
uri: postgres://doadmin:wv78n3zpz42xezdk@backend-do-user-19081923-0.db.ondigitalocean.com:25060/defaultdb?sslmode=require
database: ''
Expand Down

0 comments on commit ac5e0cd

Please sign in to comment.