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
* improve: surface enum allowed-values in operation parameter XmlDocs (+3 tests, 324→327)
Extract the enum-value formatter from DefinitionCompiler into a shared
XmlDoc.buildEnumDoc helper in Utils.fs, then use it in both places:
- DefinitionCompiler already added 'Allowed values: ...' to object
property XmlDocs; this PR refactors the local formatEnumValue function
out to the shared module (no behaviour change for properties).
- OperationCompiler now also adds enum value hints to the <param> tags
in generated method XmlDocs, so IntelliSense shows valid values for
query/path/header/cookie parameters that have an enum schema.
Before:
/// <summary>List items</summary>
/// <param name="status">Filter by status</param>
After:
/// <summary>List items</summary>
/// <param name="status">Filter by status
/// Allowed values: active, inactive, pending</param>
Also refactors Schema.XmlDocTests.fs: extract parseSchema / getXmlDocAttr
helpers to eliminate duplication and add a getMethodXmlDoc helper used by
3 new tests covering the operation-parameter enum doc feature.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger checks
* Update tests/SwaggerProvider.Tests/Schema.XmlDocTests.fs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sergey Tihon <sergey.tihon@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments