# strfmt

> Go support for JSON Schema and OpenAPI string formats

Source: https://talira.ai/catalog/strfmt-gbrw9kv8
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / validation / json schema](https://talira.ai/categories/libraries/validation/json-schema), [languages / go](https://talira.ai/categories/languages/go)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [go-openapi](https://talira.ai/orgs/go-openapi.md)

strfmt is the go-openapi toolkit's Go package for the string formats JSON Schema and OpenAPI define: date-time, email, hostname, IPv4 and IPv6, URI, date, byte and the rest, plus extensions such as UUID (v3, v4, v5 and v7), ULID, CIDR, MAC address, ISBN, credit card, hex and RGB colors, and both human-readable and ISO 8601 durations. It keeps a registry of format types that serialize to and from JSON and SQL databases, with BSON support for MongoDB through an optional import. Its API is stable.

## Links

- GitHub: https://github.com/go-openapi/strfmt

## Problems it solves

- parse and validate OpenAPI string formats like date-time and uuid in Go
- use typed date, email and UUID fields in Go structs generated from an OpenAPI spec
- store OpenAPI format types in a SQL database from Go

## Features

- JSON Schema draft 4 and 2020 string formats
- Swagger 2.0 format extensions
- UUID, ULID, CIDR, MAC, ISBN and color formats
- human-readable and ISO 8601 durations
- JSON and SQL serialization
- optional BSON support for MongoDB

## Limitations

- Supports string formats only: it doesn't validate number or integer formats such as float, double or int32[^1]

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.79, adoption 0.41, momentum 0.08, community 0.69, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 28 commits in the last 90 days
- latest release v0.27.4 41 days ago
- 112 GitHub stars
- 52 contributors
- backed by go-openapi

## Sources

[^1]: https://github.com/go-openapi/strfmt/blob/master/README.md (checked 27 Nov 2026)
[^2]: https://github.com/go-openapi/strfmt/blob/master/LICENSE (checked 27 Nov 2026)
