Skip to content

Commit

Permalink
Fixed generation of obsolete provided methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-tihon committed Jan 20, 2016
1 parent e63992e commit 78664aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 0.3.4 - January 20 2016
* Fixed generation of obsolete provided methods - https://github.com/fsprojects/FSharp.TypeProviders.StarterPack/issues/70

#### 0.3.3 - January 18 2016
* Fixed code generation for PetStore schema (Removed deprecated attributes from methods)
* Updated JSON.NET version up to v8.0.2
Expand Down
12 changes: 6 additions & 6 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ GITHUB
src/Net/UriUtils.fs (9b01f37126d5b2487dac5da7899bb2b1a5cb56ef)
remote: fsprojects/FSharp.TypeProviders.StarterPack
specs:
src/DebugProvidedTypes.fs (f1234ba078dad7cbb674b1d1ab8b94f92f827911)
src/ProvidedTypes.fs (f1234ba078dad7cbb674b1d1ab8b94f92f827911)
src/ProvidedTypes.fsi (f1234ba078dad7cbb674b1d1ab8b94f92f827911)
src/DebugProvidedTypes.fs (eb919461a3cfc5bd8a7569a7af723566b678e8fa)
src/ProvidedTypes.fs (eb919461a3cfc5bd8a7569a7af723566b678e8fa)
src/ProvidedTypes.fsi (eb919461a3cfc5bd8a7569a7af723566b678e8fa)
remote: fsprojects/FSharp.Configuration
specs:
src/FSharp.Configuration/TypeProviders.Helper.fs (538b8d0198fb2424e541e3d976fffdc01fe7a198)
GROUP Build
NUGET
remote: https://www.nuget.org/api/v2
specs:
FAKE (4.14.7)
FAKE (4.16.0)
FSharp.Compiler.Service (1.4.2.3)
FSharp.Formatting (2.13.2)
FSharp.Formatting (2.13.4)
FSharp.Compiler.Service (>= 1.4.2 < 1.5.0)
FSharpVSPowerTools.Core (>= 2.2.0 < 2.3.0)
FSharpVSPowerTools.Core (2.2.0)
Expand All @@ -47,7 +47,7 @@ NUGET
GITHUB
remote: fsharp/FAKE
specs:
modules/Octokit/Octokit.fsx (8ce381e8c486df770b9e8b0b4542d30dbf5262d6)
modules/Octokit/Octokit.fsx (627d68727518ef0c013d0dfbb0260aba84de98e1)
Octokit
GROUP OWIN
NUGET
Expand Down
4 changes: 2 additions & 2 deletions src/SwaggerProvider.DesignTime/OperationCompiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ type OperationCompiler (schema:SwaggerObject, defCompiler:DefinitionCompiler, he
let m = ProvidedMethod(methodName, parameters, retTy, IsStaticMethod = true)
if not <| String.IsNullOrEmpty(op.Summary)
then m.AddXmlDoc(op.Summary)
//if op.Deprecated
// then m.AddObsoleteAttribute("Operation is deprecated", false)
if op.Deprecated
then m.AddObsoleteAttribute("Operation is deprecated", false)

m.InvokeCode <- fun args ->
let basePath =
Expand Down

0 comments on commit 78664aa

Please sign in to comment.