Skip to content

Commit

Permalink
Updated CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrasingh committed Aug 8, 2024
1 parent 745b604 commit 3e26310
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions geoprox-server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added missing OpenAPI `Path` parameter descriptions
- Improved error handling and responses
- Implemented Batch API for insertion, removal and query
- Added `api::doc::openapi_spec_json()` for accesing the OpenAPI specification programmatically

## 0.3.1

Expand Down
2 changes: 1 addition & 1 deletion geoprox-server/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub mod docs {
.merge(SwaggerUi::new("/swagger-ui").url("/api-spec/openapi.json", ApiDoc::openapi()))
}

pub fn openapi_spec(pretty_print: bool) -> Result<String, serde_json::Error> {
pub fn openapi_spec_json(pretty_print: bool) -> Result<String, serde_json::Error> {
if pretty_print {
ApiDoc::openapi().to_pretty_json()
} else {
Expand Down
2 changes: 2 additions & 0 deletions geoprox/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Added supoort for generating OpenAPI spec from CLI ([#3](https://github.com/ezrasingh/geoprox/issues/3))

## 0.3.1

- Bumped `geoprox-core` to [v0.3.1](https://crates.io/crates/geoprox-core/0.3.1).
Expand Down
2 changes: 1 addition & 1 deletion geoprox/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn main() {
stdout,
pretty,
}) => {
let spec_json = geoprox_server::api::docs::openapi_spec(*pretty).unwrap();
let spec_json = geoprox_server::api::docs::openapi_spec_json(*pretty).unwrap();
if *stdout {
// ? print the spec JSON to stdout, if `stdout` is `true` or `Some(true)`,
println!("{}", spec_json);
Expand Down

0 comments on commit 3e26310

Please sign in to comment.