// // Copyright Amazon.com Inc. or its affiliates. // All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // import Foundation import Amplify extension RESTOperationRequest { // Performs client side validation and returns a `APIError` for any validation failures func validate() throws { if let apiName = apiName { try RESTOperationRequestUtils.validateApiName(apiName) } } }