TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Marshmallow-jsonschema – portable descriptions for marshmallow schemas [python]

3 pointsby fuhrysteveover 9 years ago

1 comment

fuhrysteveover 9 years ago
This is just a prototype, but it is an attempt to solve a big problem I&#x27;ve had: describing a schema to a remote client system (browser &#x2F; mobile &#x2F; etc) in a portable way.<p>Sure, I could just use a traditional form library to render HTML (such as wtforms, etc), but what if my client doesn&#x27;t understand HTML? Or even if it is a browser - what if my template system resides on the client side (in javascript), and I don&#x27;t want to make presumptions about how my javascript chooses to render the form on the server side.<p>JSON Schema (<a href="http:&#x2F;&#x2F;json-schema.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;json-schema.org&#x2F;</a>) provides a way to describe schemas in a language &#x2F; system agnostic way.