Patrick Stevens
67e051b6b3
Add --no- prefix for bools ( #455 )
...
Implements support for --no- prefix negation on boolean and flag DU fields
when marked with [<ArgumentNegateWithPrefix>]. This allows both --flag and
--no-flag forms to be accepted, with --no- variants negating the value.
Changes:
- Extend ArgParserGenerator to generate --no- prefix handling
- Add conflict detection for overlapping --no- prefixed arguments
- Update help text to display both forms (e.g., --verbose / --no-verbose)
- Add test examples in ArgParserNegationTests.fs demonstrating:
- Boolean field negation
- Flag DU negation
- Multiple ArgumentLongForm with negation
- Combined features (defaults, help text)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-19 07:53:15 +00:00
dependabot[bot]
30eb28d00a
Bump WoofWare.Whippet.Fantomas from 0.6.3 to 0.6.4 ( #440 )
2025-10-20 11:13:03 +00:00
dependabot[bot]
fa81119cec
Bump Microsoft.NET.Test.Sdk from 17.14.1 to 18.0.0 ( #434 )
...
* Bump Microsoft.NET.Test.Sdk from 17.14.1 to 18.0.0
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
dependency-version: 18.0.0
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: Microsoft.NET.Test.Sdk
dependency-version: 18.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump NUnit3TestAdapter from 5.0.0 to 5.2.0
---
updated-dependencies:
- dependency-name: NUnit3TestAdapter
dependency-version: 5.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: NUnit3TestAdapter
dependency-version: 5.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump WoofWare.Expect from 0.8.2 to 0.8.3
---
updated-dependencies:
- dependency-name: WoofWare.Expect
dependency-version: 0.8.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump ApiSurface from 5.0.1 to 5.0.2
---
updated-dependencies:
- dependency-name: ApiSurface
dependency-version: 5.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: ApiSurface
dependency-version: 5.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump TypeEquality from 0.3.0 to 0.4.2
---
updated-dependencies:
- dependency-name: TypeEquality
dependency-version: 0.4.2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Deps
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com >
2025-10-13 17:39:07 +00:00
Patrick Stevens
1721ad1ac0
Unconditional function for empty generating mock ( #430 )
2025-09-30 21:52:59 +00:00
Patrick Stevens
1b85182b9d
GenerateCapturingMock that captures calls made to it ( #425 )
2025-09-18 15:42:10 +01:00
Patrick Stevens
4236b26189
Parse OpenAPI 3 files ( #392 )
2025-06-18 18:00:56 +00:00
Patrick Stevens
4fe4e3f277
Add JSON headers automatically to Body in HTTP client ( #395 )
2025-06-18 15:46:14 +00:00
Patrick Stevens
9473a080ff
Remove Apache-licenced snippet to simplify licensing ( #391 )
2025-06-17 22:53:50 +00:00
Patrick Stevens
e6867572b7
Add swagger v3 types and remove v2 types from surface ( #390 )
2025-06-17 21:07:14 +00:00
Patrick Stevens
e8571553c4
Fix the incorrect rendering of the Patch attribute ( #375 )
2025-04-22 22:53:32 +01:00
Patrick Stevens
19761db983
Fix treatment of Patch ( #374 )
2025-04-21 22:46:01 +00:00
Patrick Stevens
f30a73fd4f
Bump WoofWare.Whippet.Fantomas ( #373 )
2025-04-21 21:36:26 +00:00
Patrick Stevens
b2d64562bf
Support octet-stream content type in Swagger gen ( #372 )
2025-04-21 20:57:51 +00:00
Patrick Stevens
e7e629613e
Work around Gitea's malformed responses again ( #371 )
2025-04-21 20:07:44 +00:00
Patrick Stevens
4560138b59
Work around a strange Gitea behaviour ( #370 )
2025-04-21 20:49:32 +01:00
Patrick Stevens
425d5313b4
Be compatible with <Nullable>enable</Nullable> ( #369 )
2025-04-21 18:43:52 +01:00
Patrick Stevens
0fe97da788
Have arg parser take string -> string option ( #368 )
2025-04-21 09:07:58 +00:00
Patrick Stevens
f944953384
Enforce non-nullability in more cases during JSON parse ( #367 )
2025-04-20 17:20:22 +00:00
Patrick Stevens
7930039ad1
Revert "Some fixes to nullability ( #365 )" ( #366 )
...
This reverts commit 8d275f0047 .
2025-04-20 17:02:40 +00:00
Patrick Stevens
8d275f0047
Some fixes to nullability ( #365 )
2025-04-20 16:26:45 +00:00
dependabot[bot]
325f8634a4
Bump FSharp.Core and WoofWare.Whippet.Fantomas ( #361 )
...
* Bump FsCheck and FSharp.Core
Bumps [FsCheck](https://github.com/Fscheck/fscheck ) and [FSharp.Core](https://github.com/dotnet/fsharp ). These dependencies needed to be updated together.
Updates `FsCheck` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/Fscheck/fscheck/releases )
- [Changelog](https://github.com/fscheck/FsCheck/blob/master/FsCheck%20Release%20Notes.md )
- [Commits](https://github.com/Fscheck/fscheck/compare/3.1.0...3.2.0 )
Updates `FSharp.Core` from 4.3.4 to 5.0.2
- [Release notes](https://github.com/dotnet/fsharp/releases )
- [Changelog](https://github.com/dotnet/fsharp/blob/main/release-notes.md )
- [Commits](https://github.com/dotnet/fsharp/commits )
---
updated-dependencies:
- dependency-name: FsCheck
dependency-version: 3.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: FSharp.Core
dependency-version: 5.0.2
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump FSharp.Core and WoofWare.Whippet.Fantomas
Bumps [FSharp.Core](https://github.com/dotnet/fsharp ) and [WoofWare.Whippet.Fantomas](https://github.com/Smaug123/WoofWare.Whippet ). These dependencies needed to be updated together.
Updates `FSharp.Core` from 4.3.4 to 6.0.1
- [Release notes](https://github.com/dotnet/fsharp/releases )
- [Changelog](https://github.com/dotnet/fsharp/blob/main/release-notes.md )
- [Commits](https://github.com/dotnet/fsharp/commits )
Updates `WoofWare.Whippet.Fantomas` from 0.3.2 to 0.5.1
- [Commits](https://github.com/Smaug123/WoofWare.Whippet/commits )
---
updated-dependencies:
- dependency-name: FSharp.Core
dependency-version: 6.0.1
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: WoofWare.Whippet.Fantomas
dependency-version: 0.5.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com >
2025-04-14 22:05:23 +00:00
dependabot[bot]
a5f4d169ca
Bump FSharp.Core and WoofWare.Whippet.Fantomas ( #352 )
...
* Bump FSharp.Core and WoofWare.Whippet.Fantomas
Bumps [FSharp.Core](https://github.com/dotnet/fsharp ) and [WoofWare.Whippet.Fantomas](https://github.com/Smaug123/WoofWare.Whippet ). These dependencies needed to be updated together.
Updates `FSharp.Core` from 4.3.4 to 6.0.1
- [Release notes](https://github.com/dotnet/fsharp/releases )
- [Changelog](https://github.com/dotnet/fsharp/blob/main/release-notes.md )
- [Commits](https://github.com/dotnet/fsharp/commits )
Updates `WoofWare.Whippet.Fantomas` from 0.3.1 to 0.3.2
- [Commits](https://github.com/Smaug123/WoofWare.Whippet/commits )
---
updated-dependencies:
- dependency-name: FSharp.Core
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: WoofWare.Whippet.Fantomas
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump ApiSurface and FSharp.Core
Bumps [ApiSurface](https://github.com/G-Research/ApiSurface ) and [FSharp.Core](https://github.com/Microsoft/visualfsharp ). These dependencies needed to be updated together.
Updates `ApiSurface` from 4.1.17 to 4.1.20
- [Release notes](https://github.com/G-Research/ApiSurface/releases )
- [Commits](https://github.com/G-Research/ApiSurface/compare/ApiSurface.4.1.17...ApiSurface.4.1.20 )
Updates `FSharp.Core` from 4.3.4 to 4.3.4
- [Release notes](https://github.com/Microsoft/visualfsharp/releases )
- [Changelog](https://github.com/dotnet/fsharp/blob/main/release-notes.md )
- [Commits](https://github.com/Microsoft/visualfsharp/commits )
---
updated-dependencies:
- dependency-name: ApiSurface
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: FSharp.Core
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Deps
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com >
2025-03-24 19:38:01 +00:00
Patrick Stevens
277a186fda
Allow properties in mocked interfaces ( #336 )
2025-02-12 23:53:15 +00:00
dependabot[bot]
74fdd7c0a9
Bump fantomas from 6.3.16 to 7.0.0 ( #326 )
...
* Bump fantomas from 6.3.16 to 7.0.0
Bumps [fantomas](https://github.com/fsprojects/fantomas ) from 6.3.16 to 7.0.0.
- [Release notes](https://github.com/fsprojects/fantomas/releases )
- [Changelog](https://github.com/fsprojects/fantomas/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsprojects/fantomas/compare/v6.3.16...v7.0.0 )
---
updated-dependencies:
- dependency-name: fantomas
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Deps
* Format
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com >
2025-01-14 10:35:58 +00:00
dependabot[bot]
44506f3650
Bump WoofWare.Whippet.Fantomas and FSharp.Core ( #289 )
...
* Bump WoofWare.Whippet.Fantomas and FSharp.Core
Bumps [WoofWare.Whippet.Fantomas](https://github.com/Smaug123/WoofWare.Whippet ) and [FSharp.Core](https://github.com/dotnet/fsharp ). These dependencies needed to be updated together.
Updates `WoofWare.Whippet.Fantomas` from 0.2.1 to 0.3.1
- [Commits](https://github.com/Smaug123/WoofWare.Whippet/commits )
Updates `FSharp.Core` from 4.3.4 to 6.0.1
- [Release notes](https://github.com/dotnet/fsharp/releases )
- [Changelog](https://github.com/dotnet/fsharp/blob/main/release-notes.md )
- [Commits](https://github.com/dotnet/fsharp/commits )
---
updated-dependencies:
- dependency-name: WoofWare.Whippet.Fantomas
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: FSharp.Core
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Deps
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com >
2024-10-14 11:39:41 +00:00
Patrick Stevens
aece186424
Fix NuGet packaging ( #287 )
2024-10-07 20:38:49 +01:00
Patrick Stevens
d59ebdfccb
Use more of the Whippet Fantomas client lib ( #284 )
2024-10-06 21:22:24 +00:00
Patrick Stevens
5319a33b7b
Move a useful function ( #283 )
2024-10-06 21:15:41 +00:00
Patrick Stevens
29b93b2f20
Pull in AST-manipulating function from Myriad ( #281 )
2024-10-06 21:08:32 +00:00
Patrick Stevens
40106d8aa3
Use WoofWare.Whippet.Fantomas rather than Myriad.Core ( #280 )
2024-10-06 20:22:06 +00:00
Patrick Stevens
16e6b91548
Use EscapeDataString instead of UrlEncode ( #278 )
2024-10-03 15:10:39 +00:00
Patrick Stevens
8488883835
Remove more of Myriad.Core ( #276 )
2024-10-02 20:38:00 +00:00
Patrick Stevens
0652744c57
Allow using fsproj annotations instead of attributes ( #275 )
2024-10-02 19:30:21 +00:00
Patrick Stevens
93a1b630c8
Add HTTP Swagger client generator ( #250 )
2024-09-19 17:21:09 +01:00
Patrick Stevens
4482038e8a
Support individual per-method headers ( #268 )
2024-09-19 17:08:38 +01:00
Patrick Stevens
0a1783d6ed
Support [<BasePath>] ( #263 )
2024-09-15 17:38:03 +00:00
Patrick Stevens
9a3ebbf28f
Cope with unit type in JSON ( #262 )
2024-09-15 14:37:50 +00:00
Patrick Stevens
e22525c200
Interpret JsonExtensionData ( #261 )
2024-09-15 11:13:22 +01:00
Patrick Stevens
09b7109c84
Extract some utilities from http-client branch ( #260 )
2024-09-14 22:02:32 +00:00
Patrick Stevens
693b95106a
Also pipe through parser in PositionalArgs true ( #259 )
2024-09-13 16:11:53 +00:00
Patrick Stevens
49ecfbf5e5
Fix includeFlagLike when arg doesn't have an equals ( #257 )
2024-09-12 22:10:08 +00:00
Patrick Stevens
5748ac3d5b
Allow consuming *all* args as positionals, not just ones which look like --foo ( #255 )
2024-09-11 19:00:04 +00:00
Patrick Stevens
913959a740
Make arg parser more AOT-friendly ( #253 )
2024-09-10 22:16:43 +01:00
Patrick Stevens
029e3746bb
Fix record/union impl accessibility ( #245 )
2024-09-07 08:49:28 +00:00
Patrick Stevens
8ae749c529
Add ArgumentLongForm ( #244 )
2024-09-05 21:26:52 +01:00
Patrick Stevens
e4cbab3209
Implement [<ArgumentFlag>] for two-case DUs ( #242 )
2024-09-04 21:48:36 +00:00
Patrick Stevens
bdce82fb7a
Handle env vars with value 0 and 1 for bools ( #241 )
2024-09-04 21:06:22 +01:00
Patrick Stevens
8f9f933971
Handle URI in arg parser ( #240 )
2024-09-04 20:20:51 +01:00
Patrick Stevens
3a55ba1242
Allow positional args to be Choice<'a, 'a> to indicate whether they came before any positional marker ( #238 )
2024-09-04 20:09:40 +01:00
Patrick Stevens
047b2eda99
Throw on duplicated args ( #237 )
2024-09-04 08:39:19 +01:00