* Emit `# Deprecated:` / `# Experimental:` / `# Internal:` comments above a * dataclass field. Order matches our other codegens (deprecated, experimental, * internal) and keeps the comments out of the field declaration itself.
(lines: string[], propSchema: JSONSchema7 | null | undefined)
| 692 | * internal) and keeps the comments out of the field declaration itself. |
| 693 | */ |
| 694 | function pushPyFieldMarkers(lines: string[], propSchema: JSONSchema7 | null | undefined): void { |
| 695 | if (!propSchema) return; |
| 696 | if (isSchemaDeprecated(propSchema)) { |
| 697 | lines.push(` # Deprecated: this field is deprecated.`); |
| 698 | } |
| 699 | if (isSchemaExperimental(propSchema)) { |
| 700 | lines.push(` # Experimental: this field is part of an experimental API and may change or be removed.`); |
| 701 | } |
| 702 | if (isSchemaInternal(propSchema)) { |
| 703 | lines.push(` # Internal: this field is an internal SDK API and is not part of the public surface.`); |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | /** |
| 708 | * Modernize quicktype's Python 3.7 output to Python 3.11+ syntax: |
no test coverage detected
searching dependent graphs…