Quick Start for Authoring Redfish Schema

Document Identifier: DSP2055 Date: 2019-08-06 Version: 1.0.0

Quick Start for Authoring Redfish Schema

Supersedes: none Document Class: Informative Document Status: Published Document Language: en-US

Quick Start for Authoring Redfish Schema

DSP2055

Copyright Notice

Copyright ? 2019 DMTF. All rights reserved.

DMTF is a not-for-profit association of industry members dedicated to promoting enterprise and systems management and interoperability. Members and non-members may reproduce DMTF specifications and documents, provided that correct attribution is given. As DMTF specifications may be revised from time to time, the particular version and release date should always be noted.

Implementation of certain elements of this standard or proposed standard may be subject to third party patent rights, including provisional patent rights (herein "patent rights"). DMTF makes no representations to users of the standard as to the existence of such rights, and is not responsible to recognize, disclose, or identify any or all such third party patent right, owners or claimants, nor for any incomplete or inaccurate identification or disclosure of such rights, owners or claimants. DMTF shall have no liability to any party, in any manner or circumstance, under any legal theory whatsoever, for failure to recognize, disclose, or identify any such third party patent rights, or for such party's reliance on the standard or incorporation thereof in its product, protocols or testing procedures. DMTF shall have no liability to any party implementing such standard, whether such implementation is foreseeable or not, nor to any patent owner or claimant, and shall have no liability or responsibility for costs or losses incurred if a standard is withdrawn or modified after publication, and shall be indemnified and held harmless by any party implementing the standard from any and all claims of infringement by a patent owner for such implementations.

For information about patents held by third-parties which have notified the DMTF that, in their opinion, such patent may relate to or impact implementations of DMTF standards, visit policies/disclosures.php.

This document's normative language is English. Translation into other languages is permitted.

2

Published

Version 1.0.0

DSP2055

Quick Start for Authoring Redfish Schema

CONTENTS

1. Abstract .................................................................................................................................................... 6 2. References ............................................................................................................................................... 6 3. Schema creation: Before you begin ......................................................................................................... 6

3.1. Understand the schema formats ............................................................................................. 7 3.2. Understand the schema data types ........................................................................................ 7

3.2.1. Strings ................................................................................................................... 7 3.2.2. Numerics................................................................................................................ 8 3.2.3. Booleans................................................................................................................ 8 3.2.4. Arrays .................................................................................................................... 9 3.2.5. Enumerations ........................................................................................................ 9 3.2.6. Complex types ..................................................................................................... 11 3.3. Gather your data and its information..................................................................................... 12 3.4. Organize the data ................................................................................................................. 14 4. Create the schema ................................................................................................................................. 15 4.1. Step 1: Name the schema .................................................................................................... 16 4.2. Step 2: Create the skeleton .................................................................................................. 16 4.3. Step 3: Add OpenAPI paths .................................................................................................. 16 4.4. Step 4: Add properties .......................................................................................................... 16 5. Advanced topics ..................................................................................................................................... 18 5.1. Actions .................................................................................................................................. 18 5.1.1. Notes on actions .................................................................................................. 19 5.2. Constraints ............................................................................................................................ 19 5.2.1. Numeric ranges ................................................................................................... 19 5.2.2. Constrained string values .................................................................................... 19 5.3. Multi-version support............................................................................................................. 20 5.3.1. To add a schema version..................................................................................... 20 5.4. External references ............................................................................................................... 22 5.4.1. Inclusion inheritance ............................................................................................ 23 5.4.2. Link to subordinate resources ............................................................................. 24 5.4.3. Link to related resources ..................................................................................... 25 6. CSDL schema template ......................................................................................................................... 25 7. Dog_v1.xml schema ............................................................................................................................... 28 8. Change log ............................................................................................................................................. 33

Version 1.0.0

Published

3

Quick Start for Authoring Redfish Schema

Foreword

DSP2055

DMTF is a not-for-profit association of industry members dedicated to promoting enterprise and systems management and interoperability. For information about the DMTF, see .

4

Published

Version 1.0.0

DSP2055

Acknowledgments

Quick Start for Authoring Redfish Schema

The DMTF acknowledges this individuals for their contributions to the Redfish standard, including this document and Redfish Schemas, interoperability profiles, and message registries:

Editor:

? Bill Scherer - Hewlett Packard Enterprise

Contributors:

? Jeff Autor - Hewlett Packard Enterprise ? Mike Garrett - Hewlett Packard Enterprise ? Jeff Hilland - Hewlett Packard Enterprise ? Corey Morrison - Hewlett Packard Enterprise ? Michael Raineri - Dell Inc.

Version 1.0.0

Published

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download