@@ -86,7 +86,6 @@ type ContentSchema
8686 | StringContent Mime
8787 | BytesContent Mime
8888 | Base64Content Mime
89- | ReferenceContent ( Common . RefTo Common . RequestBody )
9089
9190
9291type alias AuthorizationInfo =
@@ -572,11 +571,6 @@ contentSchemaToBodyBuilder bodyContent =
572571 |> Gen . Base64 . fromBytes
573572 |> Gen . Maybe . withDefault ( Elm . string " " )
574573 )
575-
576- ReferenceContent _ ->
577- CliMonad . map
578- ( \ todo _ -> todo)
579- ( CliMonad . todo " toRequestFunctions: branch 'ReferenceContent _' not implemented" )
580574 in
581575 perPackageMap toBody perPackageBindings
582576
@@ -656,9 +650,6 @@ contentSchemaToBodyParams contentSchema =
656650 CliMonad . succeed ( Just Gen . Bytes . annotation_. bytes)
657651 |> CliMonad . withRequiredPackage " elm/bytes"
658652 |> CliMonad . withRequiredPackage Common . base64PackageName
659-
660- ReferenceContent _ ->
661- CliMonad . fail " toRequestFunctions: branch 'ReferenceContent _' not implemented"
662653 in
663654 annotation
664655 |> CliMonad . map
@@ -2600,9 +2591,6 @@ operationToTypesExpectAndResolver effectTypes method pathUrl operation =
26002591 , toMsg = toMsg
26012592 }
26022593 |> CliMonad . succeed
2603-
2604- ReferenceContent _ ->
2605- CliMonad . fail " operationToTypesExpectAndResolver: branch 'ReferenceContent _' not implemented"
26062594 )
26072595 ( OpenApi . Response . content response
26082596 |> contentToContentSchema
@@ -2680,9 +2668,6 @@ errorResponsesToType functionName errorResponses =
26802668
26812669 Base64Content _ ->
26822670 CliMonad . succeed Elm . Annotation . string
2683-
2684- ReferenceContent ref ->
2685- CliMonad . refToAnnotation ref
26862671 )
26872672
26882673 Nothing ->
@@ -2777,9 +2762,6 @@ errorResponsesToErrorDecoders functionName errorResponses =
27772762
27782763 EmptyContent ->
27792764 CliMonad . succeed ( Gen . Json . Decode . succeed Elm . unit)
2780-
2781- ReferenceContent _ ->
2782- CliMonad . todo " $ref errors are not supported yet"
27832765 )
27842766
27852767 Nothing ->
@@ -2850,16 +2832,6 @@ responseToSchema response =
28502832 |> CliMonad . map OpenApi . Schema . get
28512833
28522834
2853- requestBodyToSchema : OpenApi .RequestBody .RequestBody -> CliMonad Json .Schema .Definitions .Schema
2854- requestBodyToSchema requestBody =
2855- CliMonad . succeed requestBody
2856- |> CliMonad . stepOrFail " The request does not have a json content"
2857- ( OpenApi . RequestBody . content >> searchForJsonMediaType)
2858- |> CliMonad . stepOrFail " The request body's json content option doesn't have a schema"
2859- OpenApi . MediaType . schema
2860- |> CliMonad . map OpenApi . Schema . get
2861-
2862-
28632835makeNamespaceValid : String -> String
28642836makeNamespaceValid str =
28652837 String . map
0 commit comments