Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bypass schematron validation on outbound #19

Merged
merged 1 commit into from
Sep 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/operations/transfers/to_aces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

require 'dry/monads'
require 'dry/monads/do'
require 'aca_entities/serializers/xml/medicaid/atp'
require 'aca_entities/medicaid/atp'
require 'aca_entities/atp/operations/aces/generate_xml'

module Transfers
Expand All @@ -17,7 +15,7 @@ class ToAces
def call(params, service)
xml = yield create_transfer_request(params)
validated = yield schema_validation(xml)
validated = yield business_validation(validated)
# validated = yield business_validation(validated)
initiate_transfer(validated, service, params)
end

Expand All @@ -34,6 +32,7 @@ def schema_validation(xml)
end

def business_validation(xml)
# currently bypassing as it has been flakey
result = Transfers::ExecuteBusinessXmlValidations.new.call(xml.value!)
result.success? ? Success(xml) : Failure(result)
end
Expand Down