Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ regex = "1.12.3"
regress = "0.11.1"
reqwest = { version = "0.13.3", default-features = false, features = ["json", "query", "stream"] }
rustfmt-wrapper = "0.2.1"
schemars = { version = "0.8.22", features = ["chrono", "uuid1"] }
schemars = "0.8.22"
semver = "1.0.28"
serde = { version = "1.0.226", features = ["derive"] }
serde_json = "1.0.149"
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ generate_api!(
Note that the macro will be re-evaluated when the `spec` OpenAPI document
changes (when its mtime is updated).

If you derive `schemars::JsonSchema` on generated types (see `derives = [ ...
]` in the macro example above), add a dependency on `schemars` and enable the
necessary features for each formatted type that appears in your spec. For example:

```toml
[dependencies]
schemars = { version = "0.8", features = ["chrono", "uuid1"] }
```

### `build.rs`

Progenitor includes an interface appropriate for use in a
Expand Down
2 changes: 1 addition & 1 deletion example-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ rust-version.workspace = true
chrono = { version = "0.4", features = ["serde"] }
progenitor = { path = "../progenitor" }
reqwest = { version = "0.13.3", features = ["json", "query", "stream"] }
schemars = { version = "0.8.22", features = ["uuid1"] }
schemars = { version = "0.8.22", features = ["chrono", "uuid1"] }
serde = { version = "1.0", features = ["derive"] }
uuid = { version = "1.23", features = ["serde", "v4"] }
Loading