Code Monkey home page Code Monkey logo

Comments (5)

justinyoo avatar justinyoo commented on June 12, 2024 3

@hf-kklein This has been fixed by #33 and will be released soon.

from azurefunctions.extensions.

justinyoo avatar justinyoo commented on June 12, 2024

@hf-kklein Thanks for the issue! I'll have a look.

from azurefunctions.extensions.

justinyoo avatar justinyoo commented on June 12, 2024

@hf-kklein Can this DisplayAttribute sort out your issue?

https://github.com/aliencube/AzureFunctions.Extensions/blob/dev/src/Aliencube.AzureFunctions.Extensions.OpenApi/Attributes/DisplayAttribute.cs

public enum MyEnum
{
    [Display("ONE_OPTION")]
    Option1,

    [Display("ANOTHER_OPTION")]
    Option2,
}

Let me know if this helps.

from azurefunctions.extensions.

hf-kklein avatar hf-kklein commented on June 12, 2024

@justinyoo
Sorry, it didn't help. The OpenApi JSON rendered using the DisplayAttribute on enum values does still require an integer:

"schema": {
    "type": "integer",
    "format": "int32"
}

from azurefunctions.extensions.

justinyoo avatar justinyoo commented on June 12, 2024

Err, I see. Apparently, it only works for the other things. I'll have a further look.

from azurefunctions.extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.