-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #474 from brjohnstmsft/polyfixrb
Adding custom polymorphic discriminator support
- Loading branch information
Showing
34 changed files
with
492 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Fixtures.AcceptanceTestsBodyComplex.Models | ||
{ | ||
using System; | ||
using System.Linq; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Serialization; | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonObject("goblin")] | ||
public partial class Goblinshark : Shark | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the Goblinshark class. | ||
/// </summary> | ||
public Goblinshark() { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the Goblinshark class. | ||
/// </summary> | ||
public Goblinshark(int? jawsize = default(int?)) | ||
{ | ||
Jawsize = jawsize; | ||
} | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "jawsize")] | ||
public int? Jawsize { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. Throws ArgumentException or ArgumentNullException if validation fails. | ||
/// </summary> | ||
public override void Validate() | ||
{ | ||
base.Validate(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.