@@ -1263,24 +1263,12 @@ instance ToJSON OpenApiType where
12631263instance ToJSON ParamLocation where
12641264 toJSON = genericToJSON (jsonPrefix " Param" )
12651265
1266- instance ToJSON ServerVariable where
1267- toJSON = genericToJSON (jsonPrefix " ServerVariable" )
1268-
12691266instance ToJSON ApiKeyLocation where
12701267 toJSON = genericToJSON (jsonPrefix " ApiKey" )
12711268
12721269instance ToJSON ApiKeyParams where
12731270 toJSON = genericToJSON (jsonPrefix " apiKey" )
12741271
1275- instance ToJSON Tag where
1276- toJSON = genericToJSON (jsonPrefix " Tag" )
1277-
1278- instance ToJSON ExternalDocs where
1279- toJSON = genericToJSON (jsonPrefix " ExternalDocs" )
1280-
1281- instance ToJSON Xml where
1282- toJSON = genericToJSON (jsonPrefix " Xml" )
1283-
12841272instance ToJSON Discriminator where
12851273 toJSON = genericToJSON (jsonPrefix " Discriminator" )
12861274
@@ -1309,21 +1297,12 @@ instance FromJSON OpenApiType where
13091297instance FromJSON ParamLocation where
13101298 parseJSON = genericParseJSON (jsonPrefix " Param" )
13111299
1312- instance FromJSON ServerVariable where
1313- parseJSON = genericParseJSON (jsonPrefix " ServerVariable" )
1314-
13151300instance FromJSON ApiKeyLocation where
13161301 parseJSON = genericParseJSON (jsonPrefix " ApiKey" )
13171302
13181303instance FromJSON ApiKeyParams where
13191304 parseJSON = genericParseJSON (jsonPrefix " apiKey" )
13201305
1321- instance FromJSON Tag where
1322- parseJSON = genericParseJSON (jsonPrefix " Tag" )
1323-
1324- instance FromJSON ExternalDocs where
1325- parseJSON = genericParseJSON (jsonPrefix " ExternalDocs" )
1326-
13271306instance FromJSON Discriminator where
13281307 parseJSON = genericParseJSON (jsonPrefix " Discriminator" )
13291308
@@ -1523,6 +1502,18 @@ instance ToJSON Contact where
15231502instance ToJSON License where
15241503 toJSON = sopSwaggerGenericToJSONWithOpts (mkSwaggerAesonOptions " License" )
15251504
1505+ instance ToJSON ServerVariable where
1506+ toJSON = sopSwaggerGenericToJSONWithOpts (mkSwaggerAesonOptions " ServerVariable" )
1507+
1508+ instance ToJSON Tag where
1509+ toJSON = sopSwaggerGenericToJSONWithOpts (mkSwaggerAesonOptions " Tag" )
1510+
1511+ instance ToJSON ExternalDocs where
1512+ toJSON = sopSwaggerGenericToJSONWithOpts (mkSwaggerAesonOptions " ExternalDocs" )
1513+
1514+ instance ToJSON Xml where
1515+ toJSON = sopSwaggerGenericToJSONWithOpts (mkSwaggerAesonOptions " Xml" )
1516+
15261517-- =======================================================================
15271518-- Manual FromJSON instances
15281519-- =======================================================================
@@ -1682,9 +1673,6 @@ instance FromJSON (Referenced Header) where parseJSON = referencedParseJSON "#
16821673instance FromJSON (Referenced Link ) where parseJSON = referencedParseJSON " #/components/links/"
16831674instance FromJSON (Referenced Callback ) where parseJSON = referencedParseJSON " #/components/callbacks/"
16841675
1685- instance FromJSON Xml where
1686- parseJSON = genericParseJSON (jsonPrefix " xml" )
1687-
16881676instance FromJSON AdditionalProperties where
16891677 parseJSON (Bool b) = pure $ AdditionalPropertiesAllowed b
16901678 parseJSON js = AdditionalPropertiesSchema <$> parseJSON js
@@ -1712,6 +1700,18 @@ instance FromJSON Contact where
17121700instance FromJSON License where
17131701 parseJSON = sopSwaggerGenericParseJSONWithOpts (mkSwaggerAesonOptions " License" )
17141702
1703+ instance FromJSON ServerVariable where
1704+ parseJSON = sopSwaggerGenericParseJSONWithOpts (mkSwaggerAesonOptions " ServerVariable" )
1705+
1706+ instance FromJSON Tag where
1707+ parseJSON = sopSwaggerGenericParseJSONWithOpts (mkSwaggerAesonOptions " Tag" )
1708+
1709+ instance FromJSON ExternalDocs where
1710+ parseJSON = sopSwaggerGenericParseJSONWithOpts (mkSwaggerAesonOptions " ExternalDocs" )
1711+
1712+ instance FromJSON Xml where
1713+ parseJSON = sopSwaggerGenericParseJSONWithOpts (mkSwaggerAesonOptions " xml" )
1714+
17151715instance HasSwaggerAesonOptions Server where
17161716 swaggerAesonOptions _ = mkSwaggerAesonOptions " server"
17171717instance HasSwaggerAesonOptions Components where
0 commit comments