Code Monkey home page Code Monkey logo

untp-models's Introduction

untp-models's People

Contributors

jsyro avatar

Watchers

 avatar

untp-models's Issues

All Optional

Manually or broadly add optional behaviour to all attributes of all (or some classes).

URI validation

AnyURL pydantic types are not json serializable, so urls are validated as str.

I've tried defining a custom json_encoder, but the pydantic type is not actually an AnyURL object, so I was not able to detect the right class.

A solution to this would properly leverage pydantic's url validation, but also allow for a successful json.dumps(<model>.dict()) of a class with a URI field.

Licence not specified

Do you plan to licence this code?

a pydantic expression of spec-untp seems like a handy thing for python users, especially with all the first generation untp stuff happening in the js/ts ecosystem. But without an open source licence that’s compatible with people’s projects, they might be reluctant to use it (or contribute back).

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.