DZone
Integration Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Integration Zone > OpenAPI Specification Version 3.0 Highlights

OpenAPI Specification Version 3.0 Highlights

In my opinion, the highlights in Version 3.0 of the OpenAPI Spec include content negotiation, the schema, and the components architecture.

Kin Lane user avatar by
Kin Lane
·
Jan. 27, 17 · Integration Zone · Opinion
Like (5)
Save
Tweet
3.85K Views

Join the DZone community and get the full member experience.

Join For Free

I am impressed with the work that the Open API Initiative (OAI) working group has accomplished with the Version 3.0 release of the OpenAPI Specification. I have had zero involvement in moving the specification forward (something I'm changing), and after coming back to the effort, I am impressed with what they've prioritized and accomplished for this release. 

The highlights in Version 3.0 of the OpenAPI Spec for me are:

  • Components. The new components architecture really reflects APIs in my opinion, making things modular and reusable.
  • Body. They're catching up when it comes to allowing the body to be defined separately from the headers and parameters.
  • Content negotiation. You can now define content objects to define the relationship between response objects, media types, and schema.
  • Linking. It isn't hypermedia, but it is definitely a nod towards hypermedia, allowing the linking of objects.
  • Webhooks. You can now define callbacks that can be attached to a subscription operation describing an outbound operation.
  • Schema. Increased investment in JSON schema, including support of oneOf, anyOf, and not support, as well allowing for alternative schema now.
  • Hosts. You can now have multiple hosts, allowing you to more narrowly define the host for each path.
  • Examples. Allows you to better describe and provide examples of APIs responses and requests.
  • Version identifier. Not a big one, but removing the "Swagger: 2.0" identifier; it will now just be OpenAPI.
  • Cookies. I'm not a big fan of this being introduced, but it makes sense, and I'm sure is usable for many API operators.

The OAI blog provides a five-part series covering the version 3.0 release. These ten areas are the highlights for me. I think they nailed it as far as what was needed while also pushing into areas like linking and webhooks that I hadn't anticipated. I am looking forward to playing with converting some of my 2.0 specs to be 3.0-compliant. Once I am a little more intimate with it, I can do better to estimate how long it will take for me to evolve my platform from 2.0 to 3.0.

I am impressed with what the OpenAPI Spec working group has gotten accomplished. I am optimistic about what is possible with OpenAPI Spec in 2017 — something I'm going to be investing in heavily.

OpenAPI Specification

Published at DZone with permission of Kin Lane, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • When Writing Code Isn't Enough: Citizen Development and the Developer Experience
  • Spring, IoC Containers, and Static Code: Design Principles
  • Is Your Code DRY or WET?
  • Java’s Encapsulation - When the Getter and Setter Became Your Enemy

Comments

Integration Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo