Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
ghik committed Apr 16, 2024
1 parent 8ed2326 commit a85fff8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions apispec-model/src/main/scala/sttp/apispec/Schema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ case class Schema(
// OpenAPI specific
// https://spec.openapis.org/oas/v3.1.0#fixed-fields-19
externalDocs: Option[ExternalDocumentation] = None,

// OpenAPI specific
// https://spec.openapis.org/oas/v3.1.0#specification-extensions
extensions: ListMap[String, ExtensionValue] = ListMap.empty
) extends SchemaLike {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ trait JsonSchemaCirceEncoders {
"deprecated" := s.deprecated,
"readOnly" := s.readOnly,
"writeOnly" := s.writeOnly
) ++ typeAndNullable ++ Vector(
) ++ exampleFields ++ typeAndNullable ++ Vector(
"enum" := s.`enum`,
"const" := s.const,
"format" := s.format,
Expand Down Expand Up @@ -110,7 +110,6 @@ trait JsonSchemaCirceEncoders {
"additionalProperties" := s.additionalProperties,
"propertyNames" := s.propertyNames,
"unevaluatedProperties" := s.unevaluatedProperties,
) ++ exampleFields ++ Vector(
"externalDocs" := s.externalDocs,
"extensions" := s.extensions
)
Expand Down

0 comments on commit a85fff8

Please sign in to comment.