Skip to content

Extension for AutoRest that generates Swift code

License

Notifications You must be signed in to change notification settings

sacheu/autorest.swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issues

If you're reading this, you've likely noticed that this repository hasn't enabled issues. That isn't because we don't want your feedback! Please file issues for the repository in one of the following repositories as appropriate:

  • Azure/azure-sdk-for-swift : When you're experiencing trouble with the Swift SDK, but not with other languages, this is the repository to report bugs to. i.e. What we generate for Long Running Operations doesn't make sense or there's something hard coded that shouldn't be.
  • Azure/swift-autorest : File bugs here when your troubles aren't related to a particular operation, or even the pattern of generation, but the core infrastructure that we use to build HTTP request or authenticate. i.e. Retry or Authentication aren't working the way you wanted.
  • Azure/autorest : Should you run into duplicated types, or fundamentally flawed enums, and it seems consistent across languages, but doesn't seem like the problems lies with the actual Azure Service, the problem could lie with how we're modeling the problem as we see it in the Open API Spec. File bugs matching this description to our parent project, "Autorest".
  • Azure/azure-rest-api-specs : If you're getting an error message from the service, saying that it requires a different set of parameters, or you're targeting the wrong endpoint, the problem is likely with the Azure OpenAPI Specs repository. i.e. It seems like the service isn't acurately described.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

AutoRest extension configuration

use-extension:
  "@microsoft.azure/autorest.modeler": "2.1.22"

pipeline:
  swift/modeler:
    input: swagger-document/identity
    output-artifact: code-model-v1
    scope: swift
  swift/commonmarker:
    input: modeler
    output-artifact: code-model-v1
  swift/cm/transform:
    input: commonmarker
    output-artifact: code-model-v1
  swift/cm/emitter:
    input: transform
    scope: scope-cm/emitter
  swift/generate:
    plugin: swift
    input: cm/transform
    output-artifact: source-file-swift
  swift/transform:
    input: generate
    output-artifact: source-file-swift
    scope: scope-transform-string
  swift/emitter:
    input: transform
    scope: scope-swift/emitter

scope-swift/emitter:
  input-artifact: source-file-swift
  output-uri-expr: $key

output-artifact:
- source-file-swift

About

Extension for AutoRest that generates Swift code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.9%
  • JavaScript 0.1%