Skip to content

Commit cc941af

Browse files
authored
7x/highlevel namespace (#3772)
* Update code configuration for low level client to only generate methods for preferred HTTP methods * Fixed locations to be nix friendly * Removed alternative HTTP method named methods in the low level client * progress commit * Simplified CsharpMethodsWithQueryString now we only yield methods for the preferred HTTP method * progress commit * progress commit * can now use partials/include this should start cleaning up the cshtml files * Able to introduce partial methods now * Add partial views * RequestDescriptorBase separate view * moved descriptors to partials (initial stab) * reindent generated code automatically * Split name and namespace * Request/Descriptors are no longer backed by CsharpMethods * start cleaning up CsharpMethod * PatchMethod on overrides is gone, * Cleaned up code configuration a tad * deduplication is now gone, marked aliases that were duplicate as deprecated * In case of GET, OTHER prefer OTHER * rebased against 7.x and reworked replace files into patch files * skip params also on requestparameters and prefer plural source_includes * reapply fix from #3700 to make sure virtual paths as root are supported again * moved lowlevel client method into partial * Moved methods to partials and no longer yield an async version, let the views handle that * make sure ctx is passed correctly in async variants * Low level client now has namespaces! * ContentType now wired per namespace, cat only in this case * started on generating the high level client methods as well * status commit requestparameters are now per namespace too and introduce an actual namespace * Continued working on making sure the methods on the highlevel client are generated and namespaced * progress commit * All methods are now generated * Tests now uses namespaced methods * progress commit * things compile again * remove some compiler warnings * Found a way for cshtml to not report errors * things compile again * The generation of methods is now much more controlled Introduced dedicated views and view models and we are reusing a whole lot more: * Add support for marking request so that the generated methods take TDocument * Fix up tests now that custom constructors are automatically wired up * requestparameters dependentupon, still now working * Clean up files and codegenerator routines a tad * Renamed final bits * generators now in separate files * update namespaces in ApiGenerator
1 parent cbc043e commit cc941af

File tree

905 files changed

+16420
-24684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

905 files changed

+16420
-24684
lines changed

src/CodeGeneration/ApiGenerator/ApiGenerator.cs

Lines changed: 0 additions & 211 deletions
This file was deleted.

src/CodeGeneration/ApiGenerator/CodeConfiguration.cs

Lines changed: 0 additions & 75 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using RazorLight;
4+
5+
namespace ApiGenerator
6+
{
7+
/// <summary> This only exists to make the IDE tooling happy, not actually used to render the templates </summary>
8+
public class CodeTemplatePage<TModel> : TemplatePage<TModel>
9+
{
10+
public override Task ExecuteAsync() => throw new NotImplementedException();
11+
12+
public Task Execute() => Task.CompletedTask;
13+
}
14+
}

0 commit comments

Comments
 (0)