@@ -42,6 +42,7 @@ spec = do
42 describe "Parameters Definition Object" $ paramsDefinitionExample <=> paramsDefinitionExampleJSON
42 describe "Parameters Definition Object" $ paramsDefinitionExample <=> paramsDefinitionExampleJSON
43 describe "Responses Definition Object" $ responsesDefinitionExample <=> responsesDefinitionExampleJSON
43 describe "Responses Definition Object" $ responsesDefinitionExample <=> responsesDefinitionExampleJSON
44 describe "Security Definitions Object" $ securityDefinitionsExample <=> securityDefinitionsExampleJSON
44 describe "Security Definitions Object" $ securityDefinitionsExample <=> securityDefinitionsExampleJSON
45+ describe "Composition Schema Example" $ compositionSchemaExample <=> compositionSchemaExampleJSON
45 describe "Swagger Object" $ do
46 describe "Swagger Object" $ do
46 context "Todo Example" $ swaggerExample <=> swaggerExampleJSON
47 context "Todo Example" $ swaggerExample <=> swaggerExampleJSON
47 context "PetStore Example" $
48 context "PetStore Example" $
@@ -1614,3 +1615,33 @@ petstoreExampleJSON = [aesonQQ|
1619+compositionSchemaExample :: Schema
1620+compositionSchemaExample = mempty
1621+ & type_ .~ SwaggerObject
1622+ & Data.Swagger.allOf ?~ [
1623+ Ref (Reference "Other")
1625+ & type_ .~ SwaggerObject
1627+ [ ("greet", Inline $ mempty
1628+ & type_ .~ SwaggerString) ])
1631+compositionSchemaExampleJSON :: Value
1632+compositionSchemaExampleJSON = [aesonQQ|
1637+ "$ref": "#/definitions/Other"
1642+ "greet": { "type": "string" }