|
| 1 | +name: 🐞 Report a bug |
| 2 | +description: > |
| 3 | + Report a deviation from expected or documented behavior, but not a crash. |
| 4 | +labels: [kind/bug, status/triage] |
| 5 | +body: |
| 6 | + - type: markdown |
| 7 | + attributes: |
| 8 | + value: > |
| 9 | + This repository hosts issues for the Swift OpenAPI generator, the Swift |
| 10 | + OpenAPI runtime library, the Swift OpenAPI URLSession transport library, |
| 11 | + and the AsyncHTTPClient transport library. |
| 12 | + It does *not* track feedback on Xcode and other closed source Apple |
| 13 | + developer software such as URLSession itself; please direct it to |
| 14 | + [Feedback Assistant](https://developer.apple.com/bug-reporting) instead. |
| 15 | +
|
| 16 | + ___ |
| 17 | + - type: textarea |
| 18 | + attributes: |
| 19 | + label: Description |
| 20 | + description: > |
| 21 | + A concise description of what causes the problem, in human language. |
| 22 | + Though not required, it may help us to more accurately triage the issue |
| 23 | + as well as understand a non-trivial test case. |
| 24 | + validations: |
| 25 | + required: false |
| 26 | + - type: textarea |
| 27 | + attributes: |
| 28 | + label: Reproduction |
| 29 | + description: > |
| 30 | + Please provide inputs to help us reproduce the issue. |
| 31 | +
|
| 32 | + If the issue relates to code generation, provide an example OpenAPI |
| 33 | + document, a generator configuration file, and extract of the Swift |
| 34 | + code you believe to contain the issue. If generation fails, please |
| 35 | + provide the generator output. |
| 36 | +
|
| 37 | + If the issue is with using the generated code, or the runtime or |
| 38 | + transport libraries, provide a test case, provide sample Swift code, and |
| 39 | + explain how to build or run it to reproduce the problem. |
| 40 | +
|
| 41 | + If the problem is a poor or unexpected error, warning, or output, please |
| 42 | + show them. |
| 43 | +
|
| 44 | + Consider reducing the test case to the smallest amount of code possible |
| 45 | + — a smaller test case is easier to reason about and more appealing to |
| 46 | + contributors. |
| 47 | + placeholder: | |
| 48 | + ```yaml |
| 49 | + # openapi.yaml |
| 50 | + openapi: '3.1.0' |
| 51 | + ... |
| 52 | + ``` |
| 53 | +
|
| 54 | + ```yaml |
| 55 | + # openapi-generator-config.yaml |
| 56 | + mode: |
| 57 | + - types |
| 58 | + - client |
| 59 | + ... |
| 60 | + ``` |
| 61 | +
|
| 62 | + ```swift |
| 63 | + let message = try await client.getGreeting() |
| 64 | + ``` |
| 65 | + validations: |
| 66 | + required: true |
| 67 | + - type: textarea |
| 68 | + attributes: |
| 69 | + label: Package version(s) |
| 70 | + description: > |
| 71 | + Provide the versions of the relevant Swift OpenAPI packages used when |
| 72 | + encountering the issue. |
| 73 | + placeholder: | |
| 74 | + ```console |
| 75 | + % swift package show-dependencies |
| 76 | + ``` |
| 77 | + validations: |
| 78 | + required: true |
| 79 | + - type: textarea |
| 80 | + attributes: |
| 81 | + label: Expected behavior |
| 82 | + description: > |
| 83 | + Describe the behavior you expected. |
| 84 | + validations: |
| 85 | + required: true |
| 86 | + - type: textarea |
| 87 | + attributes: |
| 88 | + label: Environment |
| 89 | + description: > |
| 90 | + Provide the Swift version, tag, or revision. If you suspect that the |
| 91 | + problem might be specific to a particular development platform or |
| 92 | + deployment target, please specify them as well. |
| 93 | + placeholder: | |
| 94 | + ```console |
| 95 | + % swift -version |
| 96 | +
|
| 97 | + % sw_vers || |
| 98 | + ``` |
| 99 | + validations: |
| 100 | + required: true |
| 101 | + - type: textarea |
| 102 | + attributes: |
| 103 | + label: Additional information |
| 104 | + description: > |
| 105 | + Any complementary information that could help others to work around |
| 106 | + the problem, and us to better understand the problem and its impact. |
| 107 | + For example, a link to a discussion or post that motivated this |
| 108 | + report. |
| 109 | + validations: |
| 110 | + required: false |
0 commit comments