Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #4568
Closed
Open
Issue created Nov 21, 2019 by Administrator@rootContributor4 of 6 checklist items completed4/6 checklist items

[BUG] sharp-giraffe-server creates project with Nuget ref to a deleted package

Created by: misterspeedy

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)? (N/A)
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

The generator for fsharp-giraffe-server generates a project which has a reference to a Nuget package which has since been deleted, i.e. AspNet.Security.ApiKey.Providers.

openapi-generator version

4.2.1

OpenAPI declaration file content or url

https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml

Command line used for generation
openapi-generator generate -i https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml -g fsharp-giraffe-server -o ./petstore
Steps to reproduce
  • Install v4.2.1

  • Run command line above

  • cd petstore/OpenAPI

  • ./build.bat or ./build.sh

  • Note error:

    OpenAPI.fsproj : error NU1101: Unable to find package AspNet.Security.ApiKey.Providers. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget, (our private feeds)

  • Edit src/OpenAPI.fsproj, note reference to AspNet.Security.ApiKey.Providers

  • Navigate to https://www.nuget.org/packages/AspNet.Security.ApiKey.Providers/

  • Note 'This package has been deleted from the gallery`.

Related issues/PRs

None found.

Suggest a fix

Not sure what role the missing package was intended to take, but I guess we need to either:

  • Remove the reference in the generated code and remove any - presumably optional - generated code which would have used the package OR
  • Identify a replacement package to perform the same role and amend generated code accordingly.

(The output of the generator looks very good apart from this, so I'm hoping this issue will be easy to fix ;-) .)

Assignee
Assign to
Time tracking