Tags: juhaku/utoipa
Tags
Fix utoipa-swagger-ui build (#1624) Utoipa-swagger-ui build failed to build with `cache` feature on because sha2 crate had updated its `generic-array` to `hybrid-array` dependency breaking the existing implementation hex formatting. More details here: RustCrypto/hybrid-array#201
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
Remove support for expression ignore in `ToSchema` and `IntoParams` (#… …1619) This commit removes support for expression style ignore attribute from `ToSchema` and `IntoParams` macro. This is to fix issue where ignore sometimes did not ignore values, because it was evaluated in runtime and function reference ignore can be evaluated only during runtime but we need to evaluate this at build time thus removing the possibility to define function reference as ignore attribute value. ## Breaking Following syntax demonstrates what was allowed before, but will be not available in new version 6. ```rust // before allowed fn ignore_always() -> bool { true } #[derive(ToSchema)] struct Value { #[schema(ignore = ignore_always)] field: String } ```
PreviousNext