Swagger 2

info
host
basePath
schemes
security
securityDefinitions
produces
consumes
paths
tags
externalDocs
definitions
parameters
responses

OpenAPI 3

info
servers
security
paths
tags
externalDocs
components
responses
parameters
examples
requestBodies
headers
links
callbacks
schemas
securitySchemes