Having a terms of service associated with an OpenAPI using the info terms of service property ensures that the legal aspects of legal side of the API always travel with the technical contract for an API
OpenAPI Info Terms Of Service Error
Message: Info MUST Have Terms of Service
Policies
Terms of Service for APIs
Terms of service linked from your OpenAPI info give consumers the legal context they need. Making this part of the technical contract means it travels everywhere the spec goes.