home.social

#pythonlapidary — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pythonlapidary, aggregated by home.social.

  1. Lapidary-render 0.12.0 is now released.

    To the best of my knowledge it's the only #codeGenerator that properly handles #jsonSchema anyOf and allOf.
    Also has support for oneOf, but not per the specs.

    github.com/python-lapidary/lap

    #pythonLapidary #openAPI #openAPI3 #openAPI30 #programming #python #webAPI

  2. I wanted to build a #python client for some #openSource project that offers a good #openApi 3.0 description - just to test my generator on real-live service, but also to support the community.

    I looked at @forgejo but it turns out it uses swagger 2. I didn't realise #golang was old enough...

    Any way, other ideas would be very welcome.

    #programming #codeGenerator #pythonLapidary #askFedi

  3. I wanted to build a #python client for some #openSource project that offers a good #openApi 3.0 description - just to test my generator on real-live service, but also to support the community.

    I looked at @forgejo but it turns out it uses swagger 2. I didn't realise #golang was old enough...

    Any way, other ideas would be very welcome.

    #programming #codeGenerator #pythonLapidary #askFedi

  4. I wanted to build a #python client for some #openSource project that offers a good #openApi 3.0 description - just to test my generator on real-live service, but also to support the community.

    I looked at @forgejo but it turns out it uses swagger 2. I didn't realise #golang was old enough...

    Any way, other ideas would be very welcome.

    #programming #codeGenerator #pythonLapidary #askFedi

  5. I wanted to build a #python client for some #openSource project that offers a good #openApi 3.0 description - just to test my generator on real-live service, but also to support the community.

    I looked at @forgejo but it turns out it uses swagger 2. I didn't realise #golang was old enough...

    Any way, other ideas would be very welcome.

    #programming #codeGenerator #pythonLapidary #askFedi

  6. I wanted to build a #python client for some #openSource project that offers a good #openApi 3.0 description - just to test my generator on real-live service, but also to support the community.

    I looked at @forgejo but it turns out it uses swagger 2. I didn't realise #golang was old enough...

    Any way, other ideas would be very welcome.

    #programming #codeGenerator #pythonLapidary #askFedi

  7. Just rewriting #jinja python code generator to #libCST . So far it takes more code to do the same but it's much simpler to do the hard stuff, especially when there's a lot of conditionals.

    Take annotated class field: can be generic or not, can have annotated metadata or not. Annotated metadata may be name (class or function), generic or not, or a call, and so on.

    A big nuisance of libCST is indentation - it belongs to the previous node, even though we tend to think as part of the next one. For an indented language it's rather weird design decision.

    #JSONSchema #codeGenerator #programming #python #pythonLapidary

  8. Just rewriting #jinja python code generator to #libCST . So far it takes more code to do the same but it's much simpler to do the hard stuff, especially when there's a lot of conditionals.

    Take annotated class field: can be generic or not, can have annotated metadata or not. Annotated metadata may be name (class or function), generic or not, or a call, and so on.

    A big nuisance of libCST is indentation - it belongs to the previous node, even though we tend to think as part of the next one. For an indented language it's rather weird design decision.

    #JSONSchema #codeGenerator #programming #python #pythonLapidary