Skip to content

Commit 3d777f3

Browse files
committed
Content for Limitations
1 parent 8a27eec commit 3d777f3

File tree

1 file changed

+11
-0
lines changed
  • Documentation.app/Contents/MacOS/Generation examples.playground/Pages/Limitations.xcplaygroundpage

1 file changed

+11
-0
lines changed

Documentation.app/Contents/MacOS/Generation examples.playground/Pages/Limitations.xcplaygroundpage/Contents.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,15 @@
77
/*:
88
# Limitations
99

10+
Bow OpenAPI is very powerful and generates a ready to use network client in Swift that is as good as the specification you provide. If the specification is poor or flaky, the generated code will have the same problems. Generating code according to this specification is a way of honoring it, but it is important that this contract is also honored by the backend side.
11+
12+
Nevertheless, Bow OpenAPI has some other limitations.
13+
14+
## Inline data types
15+
16+
In order to have a proper generation, you need to define data models in the `components` section in OpenAPI, or in the `definitions` section in Swagger. Defining your data models inline can result in generated code that is not properly named and therefore difficult to use.
17+
18+
## Error data
19+
20+
If you are specifying data models as part of the error response of an endpoint, Bow OpenAPI will not parse that into a value object. However, you will be able to access such information as it is carried in the `API.HTTPError` value that you will get.
1021
*/

0 commit comments

Comments
 (0)