OpenAPI Generation Errors
Beginning with the release of the Events API (beta) and Payments API and continuing with the new NXT Data Integration API, we've started to see OpenAPI code generation errors specific to enumerations.
For example, from the NXT Data Integration API, instead of (differences highlighted):
We're seeing:
We've tried changing our code generator version and such but then we run into other errors, so we've stuck with our current version.
Would someone please advise if there is a difference in how you're generating definitions between APIs?
We see this error with the Event API Invitation Status model, the Payments API Account Type model and quite a few in the new NXT Data Integration API (eg Country Code, Phone Number Type, Country Currency Placement) and a few others but these examples should be sufficient to locate and hopefully rectify the problem.
NOTE: Even within the same API we don't see the problem with all enumerations, just some.
Without a fix, we have to code up generation corrections, which we do for other things but it shouldn't really be necessary for these problems.
Let me know if you need more details.
Cheers,
Steve Cinquegrana | CEO and Principal Developer | Protégé Solutions
For example, from the NXT Data Integration API, instead of (differences highlighted):
namespace SKYLib.DataIntegration.Model
{
/// <summary>
/// Defines PhoneNumberType
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum PhoneNumberType
{
/// <summary>
/// Enum TelephoneNumber for value: TelephoneNumber
/// </summary>
[EnumMember(Value = "TelephoneNumber")]
TelephoneNumber = 1,
/// <summary>
/// Enum FaxNumber for value: FaxNumber
/// </summary>
[EnumMember(Value = "FaxNumber")]
FaxNumber = 2,
...
}
}
We're seeing:
namespace SKYLib.DataIntegration.Model
{
/// <summary>
/// Defines PhoneNumberType
/// </summary>
public enum PhoneNumberType
{
/// <summary>
/// Enum TelephoneNumber for value: TelephoneNumber
/// </summary>
TelephoneNumber = TelephoneNumber,
/// <summary>
/// Enum FaxNumber for value: FaxNumber
/// </summary>
FaxNumber = FaxNumber,
...
}
}
We've tried changing our code generator version and such but then we run into other errors, so we've stuck with our current version.
Would someone please advise if there is a difference in how you're generating definitions between APIs?
We see this error with the Event API Invitation Status model, the Payments API Account Type model and quite a few in the new NXT Data Integration API (eg Country Code, Phone Number Type, Country Currency Placement) and a few others but these examples should be sufficient to locate and hopefully rectify the problem.
NOTE: Even within the same API we don't see the problem with all enumerations, just some.
Without a fix, we have to code up generation corrections, which we do for other things but it shouldn't really be necessary for these problems.
Let me know if you need more details.
Cheers,
Steve Cinquegrana | CEO and Principal Developer | Protégé Solutions
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 648 Blackbaud Grantmaking™
- 566 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 782 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)