Commit 51d89f1
fix: skip ConfigurationSchema.json generation for non-public clients (#10284)
ConfigurationSchemaGenerator was generating schemas for clients that had
been made internal by visitors (e.g., management RestClientVisitor).
ClientSettings was set during construction when DeclarationModifiers was
still Public, and the generator only checked ClientSettings != null.
Added a DeclarationModifiers.HasFlag(Public) check so only clients that
are still public after visitors have run are included in the schema.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 34fbe57 commit 51d89f1
2 files changed
Lines changed: 20 additions & 1 deletion
File tree
- packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel
- src
- test
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
| |||
0 commit comments