You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
@@ -298,11 +300,7 @@ The struct tag templates have access to the following fields:
298
300
299
301
| Variable | Type | Description |
300
302
|----------|------|-------------|
301
-
| `.FieldName` | `string` | The original field name from the OpenAPI spec |
302
-
| `.GoFieldName` | `string` | The Go identifier name after name mangling |
303
-
| `.IsOptional` | `bool` | Whether the field is optional in the schema |
304
-
| `.IsNullable` | `bool` | Whether the field is nullable |
305
-
| `.IsPointer` | `bool` | Whether the field is rendered as a pointer type |
306
-
| `.OmitEmpty` | `bool` | Whether `omitempty` should be applied (from extensions or optionality) |
307
-
| `.OmitZero` | `bool` | Whether `omitzero` should be applied (from `x-oapi-codegen-omitzero` extension) |
308
-
| `.JSONIgnore` | `bool` | Whether the field should be ignored in JSON (from `x-go-json-ignore` extension) |
303
+
|`.FieldName`|`string`| The original property name from the OpenAPI spec |
304
+
|`.IsOptional`|`bool`| Whether the field is optional (not required) |
305
+
306
+
Extension-driven concerns (`x-oapi-codegen-omitzero`, `x-go-json-ignore`, `x-oapi-codegen-omitempty` overrides) are handled automatically as post-processing on the `json` and `form` tags. Templates do not need to handle these cases.
0 commit comments