From 28ecd16f25d09e7585acfa358325dc6d2d443467 Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Thu, 17 Jan 2019 01:36:52 +0000 Subject: [PATCH] draft format registry, add uuid --- registries/_format/uuid.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 registries/_format/uuid.md diff --git a/registries/_format/uuid.md b/registries/_format/uuid.md new file mode 100644 index 0000000000..8c6a7f7969 --- /dev/null +++ b/registries/_format/uuid.md @@ -0,0 +1,31 @@ +--- +owner: MikeRalphson +description: UUID v4 (RFC4122) +issue: 845 +base_type: string +layout: default +--- + +# {{ page.collection }} + +## {{ page.slug }} - {{ page.description }} + +Base type: `{{ page.base_type }}`. + +The `{{page.slug}}` format represents a UUID v4 value, as defined by [RFC4122](https://tools.ietf.org/html/rfc4122) + +### Example + +```yaml +ItemUUID: + type: string + description: the UUID v4 value relating to the item. + format: uuid + example: f81d4fae-7dec-11d0-a765-00a0c91e6bf6 +``` + +{% if page.issue %} +### GitHub Issue + +* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }}) +{% endif %}