Skip to content

Commit 8164a81

Browse files
revert: add example to utoipa
Refs: 118ec13
1 parent 118ec13 commit 8164a81

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Rust for Web <info@rustforweb.org>"]
55
edition = "2024"
66
license = "MIT"
77
repository = "https://github.com/RustForWeb/constant-string"
8-
version = "0.0.3"
8+
version = "0.0.4"
99

1010
[package.metadata.docs.rs]
1111
all-features = true

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ macro_rules! constant_string_utoipa {
115115
::utoipa::openapi::schema::ObjectBuilder::new()
116116
.schema_type(::utoipa::openapi::schema::Type::String)
117117
.enum_values(Some([$code_name]))
118-
.examples([$code_name])
119118
.build()
120119
.into()
121120
}
@@ -173,7 +172,6 @@ mod tests {
173172
Object::builder()
174173
.schema_type(Type::String)
175174
.enum_values(Some(["constant"]))
176-
.examples(["constant"])
177175
.build()
178176
)),
179177
Constant::schema()

0 commit comments

Comments
 (0)